WordPress.org

Support

Support » How-To and Troubleshooting » How do i remove links on postings

How do i remove links on postings

  • 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

Viewing 1 replies (of 1 total)
  • Christine Rondeau

    @crondeau

    Volunteer Forum Moderator

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘How do i remove links on postings’ is closed to new replies.
Skip to toolbar