3
07/11/2024 10:09 am
Topic starter
Hi, I have Divi web site (WordPress theme) and I want to replace "Read More" text in the blog section but there is no option to do so... I want to replace it with another text: for example: Click HERE
I've tried to find Read More in the console (Chrome F12) - but cannot find it 🙁
Can you please help!
Thanks!
Here is a screenshot of what I want to replace:
1 Answer
2
07/11/2024 10:11 am
You can use str_ireplace PHP function.
In the function.php file (hopefully in your WordPress child theme 🙂 insert these lines of code:
/*Replace read more in the blog section of WordPress*/ function newreadmore($newreadmore) { $newreadmore = str_ireplace('read more', 'Click HERE To Read More', $newreadmore); return $newreadmore; } add_filter('gettext', 'newreadmore');
I am using the 'gettext' filter: Read more here