Removing "Older Posts" link in WordPress

Removing "Older Posts" link in WordPress

Postby kawstov » Mon Apr 20, 2015 1:22 pm

If using Twenty Twelve Theme -

Step 1: Open 'functions.php'
Step 2: Take a backup of the code on a notepad.

Step 3: Search for the following code -

Code: Select all
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></div>

Step 4: Hide this code.
Step 5: Update the file

If any problem, revert to the code save in the notepad.
Site Admin
Posts: 119
Joined: Tue May 28, 2013 10:51 pm

Return to Daily Scratch

Who is online

Users browsing this forum: No registered users and 1 guest