Remove next and Previous in WordPress twenty eleven posts

asked Feb 27, 2013 in Website Builder by SunFun (3,000 points)
How can I remove the “Next” and “Previous” links from my WordPress posts. Note that I a using Twenty Eleven theme on WodPress v 2.5.1
I’d appreciate any advice.

1 Answer

0 like 0 dislike
answered Feb 27, 2013 by WebProX (12,200 points)
In your single.php look for the following code and remove it or comment it

    <nav id="nav-single">
        <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
        <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'twentyeleven' ) ); ?></span>
        <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?></span>