WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] remove older posts link on top (2 posts)

  1. michaellanfield
    Member
    Posted 1 year ago #

    http://www.michaellanfield.com

    Hi I would like to remove the older posts link from the top, but not the bottom. I searched everywhere on the net and got this.

    If you look in your index.php file you should see something that resembles this code above your loop and below it. Just remove the one above the loop:

    <div class="navigation">
    <div class="left"><?php next_posts_link('« Older Posts') ?></div>
    <div class="right"><?php previous_posts_link('Newer Posts »') ?></div>
    </div>

    However I can not find this code in my index.php page. What do I do?

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    Try removing this from index.php.

    <?php devwp_content_nav( 'nav-above' ); ?>

    I don't know if this will affect the layout of the theme.

    btw:
    consider creating a child theme instead of editing your theme directly - if you upgrade the theme all your modifications will be lost.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.