Loading...
WordpressWordpress Setup

WordPress – How to Change the Default Text Next/Previous Links In Thesis

Thesis Tutorial: How to change the default text “Next Entries” and “Previous Entries” navigation links in Thesis Theme

Once a user reaches the bottom of your Wordpress Thesis website, they can view posts created on the next or previous page.  The behaviour of these links are somewhat confusing as they do not indicate if the “Next Entries” are posts that are older or newer.  I know it’s caught me off guard a couple times.  In Wordpress terminology, “Next” means newer or more recent entries and “Previous” means older and past entries.    I decided to change the text for the next/previous links to make it more understandable to me:

Wordpress Next Previous Text Links
Wordpress Next Previous Text Links
  • Changed from “Next Posts”to “Newer Posts”
  • Changed from “Next Post” to “Newer Post”
  • Changed from “Previous Posts” to “Older Posts”
  • Changed from “Previous Post” to “Older Post”

Below are steps to change your text links in WordPress Thesis Theme.

1.  Login to your FTP manager or file manager in your control panel on your webhosting.

2.  Go to the directory:

/wp-content/themes/thesis/lib/functions

3.  Make a backup of the file:  content.php.

4.  Now edit the file: content.php

5.  Find the code to change the text on the homepage:

        if ($wp_query->max_num_pages > 1) {
$previous = apply_filters(‘thesis_previous’, __(‘Previous Posts’, ‘thesis’));
$next = apply_filters(‘thesis_next’, __(‘Next Posts’, ‘thesis’));
echo “\t\t\t<div class=\”prev_next\”>\n”;

and change it to the text in red italics:

        if ($wp_query->max_num_pages > 1) {
$previous = apply_filters(‘thesis_previous’, __(‘Older Posts’, ‘thesis’));
$next = apply_filters(‘thesis_next’, __(‘Newer Posts’, ‘thesis’));
echo “\t\t\t<div class=\”prev_next\”>\n”;

6.  Also find the code to change the text in single posts:

    if (is_single() && $thesis_design->display[‘posts’][‘nav’]) {
$previous = get_previous_post();
$next = get_next_post();
$previous_text = apply_filters(‘thesis_previous_post’, __(‘Previous post: ‘, ‘thesis’)); #filter
$next_text = apply_filters(‘thesis_next_post’, __(‘Next post: ‘, ‘thesis’)); #filter

and change it to the text in red italics:

    if (is_single() && $thesis_design->display[‘posts’][‘nav’]) {
$previous = get_previous_post();
$next = get_next_post();
$previous_text = apply_filters(‘thesis_previous_post’, __(‘Older post: ‘, ‘thesis’)); #filter
$next_text = apply_filters(‘thesis_next_post’, __(‘Newer post: ‘, ‘thesis’)); #filter

6.  Save the file/upload it back into your Thesis folder.

Now refresh your website.  You will see your new text links as Older and Newer Entries as well as Older and Newer Posts.

Wordpress Thesis Older Newer Posts
WordPress Thesis Older Newer Posts

Thanks,

Elaine

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Captcha Reload