• 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

[Resolved] How do I remove at bottom of posts?

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 › Flex Theme › How do I remove at bottom of posts?

Tagged: navigation

  • This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago by nomadicnotes.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 29, 2016 at 9:01 am #1259
    nomadicnotes
    Participant

    I would like to remove the <previous post next post> navigation that appears at the bottom of posts, thanks.

    August 29, 2016 at 6:51 pm #1269
    Davinder Singh Kanith
    Moderator

    *** backup before making changes ***

    1. In WordPress dashboard, go to Appearance > Editor
    2. Click to open functions.php file.
    3. Delete following code and save changes

    //* Showing post nav in single post page
    add_action( 'genesis_after_entry', 'flex_prev_next_post_nav', 5 );
    function flex_prev_next_post_nav() {
    
      if ( ! is_singular( 'post' ) )
        return;
    
      genesis_markup( array(
      	'html5'   => '<div %s>',
      	'xhtml'   => '<div class="navigation">',
      	'context' => 'adjacent-entry-pagination',
      ) );
    
      echo '<div class="pagination-previous alignleft">';
      
      if( is_rtl() )
        previous_post_link('<span class="dashicons dashicons-arrow-right-alt2"></span> '. __('Previous Post', 'flex') . '<br/>%link');
      else
        previous_post_link('<span class="dashicons dashicons-arrow-left-alt2"></span> '. __('Previous Post', 'flex') . '<br/>%link');
        
      echo '</div>';
    
      echo '<div class="pagination-next alignright">';
      
      if( is_rtl() )
        next_post_link(__('Next Post', 'flex') . ' <span class="dashicons dashicons-arrow-left-alt2"></span><br/>%link');
      else
        next_post_link(__('Next Post', 'flex') . ' <span class="dashicons dashicons-arrow-right-alt2"></span><br/>%link');
        
      echo '</div>';
    
      echo '</div>';
      
    }
    
    August 30, 2016 at 12:25 pm #1270
    nomadicnotes
    Participant

    That worked very easy, thanks!

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

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