Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14625 reviews 1734 hosting providers

Questions & Answers

Remove next and Previous in WordPress twenty eleven posts

Feb 27, 2013 by SunFun
Hi
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.
thanks

1 Answer

0 votes
Feb 27, 2013 by WebProX
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>
    </nav>