Mistiquedesigns

One of the most common issue we all must have faced in WordPress is changing the Read More text in wordpress blog post. This sure seems difficult but believe me it is not difficult at all.

So I’ll be sharing two tricks that will help you resolving this.

( I’ll not be mentioning any plugin names. I personally avoid using plugins for such small issues unless and until I don’t have much time. If you want to use plugins go ahead on Google you’ll find plenty of them)

  1. Using custom hook
  2. Using Code Editor
  1. Using custom hooks – For using these hooks no previous programming knowledge is required.
    • Go to your website’s Dashboard i.e www.yourwebsite.com/wp-admin
    • Appearance -> Theme Editor
    • Search for functions.php file in theme folder or in child theme folder and paste the below code.
    • Please keep backup before making changes to functions.php file.
/* Modify the read more link on the_excerpt() */

function et_excerpt_length($length) {
return 220;
/* set the number according to your requirements */

}
add_filter('excerpt_length', 'et_excerpt_length');

/* Add a link to the end of your excerpt contained in a div for styling purposes and to break to a new line on the page.*/

/* Modify the read more link on the_excerpt() */

function et_excerpt_length($length) {
return 220;
/* set the number according to your requirements */

}
add_filter('excerpt_length', 'et_excerpt_length');

/* Add a link to the end of your excerpt contained in a div for styling purposes and to break to a new line on the page.*/

function et_excerpt_more($more) {
global $post;
return 'Your Text Here;';
}
add_filter('excerpt_more', 'et_excerpt_more');

2.Using Code Editor

  • Download your theme files using cpanel in your local drive.
  • Open the folder using Visual Studio Code Editor.
  • Now click on the search button that will appear on left side.
  • Now you will see the option of search and replace . Search Read More & replace it with the text you want there to be like this.

Related Post

Leave a Reply

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