• Resolved raroc

    (@raroc)


    Where can i Change the text (language) of the “Know more” Buttons from the Front Page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • To change language, generally we use plugin called ‘WPML’ but for changing language of just few texts then we just function called `get_text()’. Please visit the given link & try to use it: https://codex.www.ads-software.com/Plugin_API/Filter_Reference/gettext
    For example to change ‘Name’ text to ‘First Name’:

    add_filter( 'gettext', 'theme_change_comment_field_names', 20, 3 );
    function theme_change_comment_field_names( $translated_text, $text, $domain ) {
    
            switch ( $translated_text ) {
    
                case 'Name' :
    
                    $translated_text = __( 'First Name', 'theme_text_domain' );
                    break;
             }
        return $translated_text;
    }

    Thanks!

    Theme Author eVision Themes

    (@evisiontheme)

    Marking this thread resolved !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Know more button’ is closed to new replies.