Home Forums Luzuk change the language of the buttons

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #41281
    Massimo Ercolani
    Participant

    Hi, I tried to change the language of the “Read More” buttons with the loco translate plugin but I couldn’t change it, I also tried inserting this function on the child of the theme:
    function theme_translations( $translated, $original, $domain ) {
    if ( $domain == ‘urja-solar-energy-pro’ ) {
    if ( $original == “READ MORE” ) {
    $translated = “Read”;
    }
    }
    return $translated;
    }
    add_filter( ‘gettext’, ‘theme_translations’, 1, 3 );

    but i failed can you help me to solve the problem

    thank you

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.