rseaver06
Member
Posted 7 months ago #
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/ 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!
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">
rseaver06
Member
Posted 7 months ago #
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
Member
Posted 7 months ago #
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;
}