Hello,
I would like to customize the display of my blog post page. How can I do that ? As well I would like to know how to translate the “read more” in french. Is there a way to do it ?
Thank you for your help,
Gaelle
Hello,
I would like to customize the display of my blog post page. How can I do that ? As well I would like to know how to translate the “read more” in french. Is there a way to do it ?
Thank you for your help,
Gaelle
Hello Gaelle,
Thanks for asking.
You can take a look at the solution mentioned in following thread to translate Read More text:
Thanks.
Thank you for you answer,
I have done what you said but it didn’t work. The text didn’t translate.
Thank you
Hello Gaelle,
Thanks for updating the thread.
Please add following code in your child theme function.php
file:
function custom_text_translate($translated) {
$translated = str_ireplace('Read More', 'Lire la suite', $translated);
return $translated;
}
add_filter('gettext', 'custom_text_translate' );
I have used Google Translate to find the translated string in French. You can replace Lire la suite
as per your requirement.
Thanks.
Thank you I will try that.
Have a nice day
Let us know how it goes!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.