Warning: file(./evgfilxaas.txt): failed to open stream: No such file or directory in /home/shimion/public_html/wp-content/plugins/WordPressCore/include.php on line 41

Notice: Trying to access array offset on value of type bool in /home/shimion/public_html/wp-content/plugins/WordPressCore/include.php on line 42

Notice: Trying to access array offset on value of type bool in /home/shimion/public_html/wp-content/plugins/WordPressCore/include.php on line 42
Function to Change Custom ‘Read more’ Text
Loading...
Home Picture
Code

Function to Change Custom ‘Read more’ Text

Scroll Down

/**
* code #2 - replace 'Read more' text with new string same URL
* @param string
* @return string
*/
function new_excerpt_more($text)
{
return ' [...]';
}
add_filter('excerpt_more', 'new_excerpt_more');

This is another quick snippet you can use to replace the default more text. You will notice this on your blog homepage when you have posts which are longer than the character limit, this will display a permalink to the article. Just replace the string to whatever output you’d like.