Home > database >  Change worspress read more button text
Change worspress read more button text

Time:11-18

I have a problem with Read More button.

Here is a link to my website: http://kamilawosinska-skillspring.com/index.php/publikacje/

As you can see all site is in Polish but Read More button is in English

I can't change it. I tried Loco translator but it does not work.

Do you have any idea how to change Read More button text?

I use Bstone theme.

CodePudding user response:

add_action( 'wp_head', 'change_read_more_to_something' );
function change_read_more_to_something() {
    add_filter( 'gettext', 'change_read_more_text');
}

function change_read_more_text( $text ) {
 
    $text = str_ireplace( 'Read More',  'YOUR TEXT',  $text );
    return $text;
}

Add this code to your functions.php

This should work but remember this will change all Read More

  • Related