When my post hovers there is a VIEW POST text. How can I change the text?
Hey @diekstra,
There’s no option for that so you need to add this code in your functions.php
// Alternate Text
function alternate_text( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'View Post' :
$translated_text = __( 'Your Custom View Post Text', '__x__' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'alternate_text', 20, 3 );
This is tested in my dev site and it works but please note that there’s no guarantee that this would work on your end also. One possible reason is not copying the code completely and another is there might be other functions in your site that could cause conflicts. If that happens, you will need to hire a web developer to investigate such cases as we don’t have support for custom code.
Thanks.
1 Like
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.