WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove navigation links (4 posts)

  1. rseaver06
    Member
    Posted 2 years 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!

  2. keesiemeijer
    moderator
    Posted 2 years ago #

    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">
  3. rseaver06
    Member
    Posted 2 years 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!

  4. silverks
    Member
    Posted 2 years 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;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic