• Home
  • Blog
  • Showcase
  • Setup Docs
    • Sunshine Help
    • Flex Help
  • Support
    • Support Area
    • Contact us
    • Feedback
  • Connect
    • Newsletter
    • Twitter
    • Facebook
  • My Account
  • Flex
  • Sunshine
Support : Simple Pro Themes

Support : Simple Pro Themes

How do I remove Previous Next on Posts page?

If you have purchased a product, please enter the email address that you used to register at time of purchase.
Log In
Lost Password

Create an Account
  • Your username must be unique, and cannot be changed later.
  • We use your email address to email you a secure password and verify your account.

Support › Forums › Sunshine Pro Theme › How do I remove Previous Next on Posts page?

  • This topic has 4 replies, 3 voices, and was last updated 5 years, 6 months ago by stacey.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 17, 2016 at 12:18 am #1492
    stacey
    Participant

    Searched for this issue and read a reference to removing the code in functions.php for
    //* Showing post nav in single post page

    However I do not have any code like that in my functions.php file.

    How do I remove Previous Next on Posts page?

    Using Sunshine Pro BB

    December 17, 2016 at 1:52 am #1494
    Davinder Singh Kanith
    Moderator

    Remove the following code in helper_functions file contained in the “lib” folder.

    add_action( 'genesis_after_entry', 'sunshine_prev_next_post_nav', 5 );
    //* Showing post nav in single post page
    function sunshine_prev_next_post_nav() {
    
      if ( ! is_singular( 'post' ) )
        return;
    
      genesis_markup( array(
      	'html5'   => '<div %s>',
      	'xhtml'   => '<div class="navigation">',
      	'context' => 'adjacent-entry-pagination',
      ) );
    
      if( get_previous_post_link() ) {
        echo '<div class="pagination-previous alignleft">';
          previous_post_link('<span class="prev-text">'. __( 'Previous', 'sunshine' ) . '</span><br/>%link');    
        echo '</div>';
      }
      
      if( get_next_post_link() ) {
        echo '<div class="pagination-next alignright">';  
          next_post_link( '<span class="next-text">' . __('Next', 'sunshine') . '</span><br/>%link');    
        echo '</div>';
      }
    
      echo '</div>';
      
    }
    December 18, 2016 at 7:32 am #1499
    stacey
    Participant

    I do not have that code in the helper_functions.php file.

    Stacey

    December 18, 2016 at 3:56 pm #1501
    Chinmoy Paul
    Moderator

    Davinder was correct. Code is in lib/helper_functions.php file

    December 18, 2016 at 5:49 pm #1505
    stacey
    Participant

    sorry, did find that code & removed it.

    Thanks

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Copyright © 2022 · Simple PRO Themes for Genesis Framework · About · FAQs · Contact · Affiliates