Title: Remove navigation links
Last modified: August 20, 2016

---

# Remove navigation links

 *  Resolved [rseaver06](https://wordpress.org/support/users/rseaver06/)
 * (@rseaver06)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/remove-navigation-links/)
 * Hey guys, I’m having trouble removing some links that automatically appear to
   link one post to the next. For example on this page [http://ketsdeverconstruction.com/2011/08/02/fountain-valley-remodel-1/ ](http://ketsdeverconstruction.com/2011/08/02/fountain-valley-remodel-1/)
   there is a link on the top that says << Jim S. of Huntington beach. I’d like 
   to get rid of these links all together but I’m not sure how. Any help is greatly
   appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/remove-navigation-links/#post-2334535)
 * Look in your theme’s loop.php and change this:
 *     ```
       <?php if ( is_single() && ! is_page() ) : ?>
               <div class="post-nav clearfix">
                   <p id="previous"><?php previous_post_link(); ?></p>
                   <p id="next-post"><?php next_post_link(); ?></p>
       ```
   
 * to this:
 *     ```
       <?php if ( is_single() && ! is_page() ) : ?>
               <div class="post-nav clearfix">
       ```
   
 *  Thread Starter [rseaver06](https://wordpress.org/support/users/rseaver06/)
 * (@rseaver06)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/remove-navigation-links/#post-2334611)
 * I didn’t find that but I did find this :
 * ‘<?php /* Posts navigation for single post pages, but not for Page post */ ?>
   
   <?php if (is_single() && !is_page()) : ?> <div class=”post-nav clearfix”> <p 
   id=”previous”><?php previous_post_link(); ?></p> <p id=”next-post”><?php next_post_link();?
   ></p> <?php do_action(‘graphene_post_nav’); ?> </div> <?php endif; ?>’
 * So I just removed it and tried it. Seems to work. What do you think? Could removing
   it have a negative effect? Thanks for your help!
 *  [silverks](https://wordpress.org/support/users/silverks/)
 * (@silverks)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/remove-navigation-links/#post-2334707)
 * > Could removing it have a negative effect?
 * Yes. When you update the theme, your changes will be gone.
 * Insert this into the theme’s Custom CSS option instead:
 *     ```
       .post-nav {
          display: none;
       }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove navigation links’ is closed to new replies.

## Tags

 * [navigation](https://wordpress.org/support/topic-tag/navigation/)

 * 3 replies
 * 3 participants
 * Last reply from: [silverks](https://wordpress.org/support/users/silverks/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/remove-navigation-links/#post-2334707)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
