Archived topic
Translating Next and Previous links in GP / WP Show Posts
2 replies · Started by Peter on July 27, 2021
Hi,
I have read a lot of support threads aboutt his topic, but I can't get any of the solutions to work.
Following David's and Tom's advice about using the Snippets plugin and then add a filter function:
add_filter( 'gettext', function( $text ) {
if ( 'Previous' === $text ) {
$text = 'Your new text';
}
if ( 'Next' === $text ) {
$text = 'Your new text';
}
return $text;
} );
just does not work.
Do I really need to use a translation plugin or open up the Po and Mo files and edit them?
Thanks (GP is a brilliant theme, so is GP Pro and WP Show Posts!)
Just modify the language files and put them in the WP languages folder. That will work.
Hi there,
the theme and posts plugin should automatically grab the local language for your install. Or if you're using a translation plugin those strings should be accessible via that plugin.
Let me know if theres still an issue. And if need be share a link to the page(s) where we can see the issue/