WordPress.org

Forums

How do i remove links on postings (2 posts)

  1. alexrams
    Member
    Posted 3 years ago #

    I am running wp on testserver currently using twenty ten childtheme. My problem is removing the links that appears over and under postings. (the links to next and previous post)

    Would appreciate if someone know how I can remove them.

    Alex

  2. To remove these, you'll need to make a copy of the loop.php and insert it in your child theme. Then you can edit it by removing the following code:

    <div id="nav-above" class="navigation">
    <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
    </div><!-- #nav-above -->

    That bit of code displays the links above the post. There's something similar for ones below.

Topic Closed

This topic has been closed to new replies.

About this Topic