• Resolved curtisnew

    (@curtisnew)


    Hi, i d like juste modifiy the label text “Rechercher” by “Rechercher par” of the search bar in Cmap, without installing “Say What” plugin. Can you help me please ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    You could alternative use the Loco Translate plugin to create your own custom translation.

    Another option is to use a WordPress filter to change the text. Here’s an example:

    add_filter( 
    	'gettext', 
    	static function( $translated_text, $untranslated_text, $domain ) {
    			if ( 'Search' === $untranslated_text && 'connections' === $domain ) {
    			return 'Rechercher par';
    		}
    		return $translated_text;
    	}, 
    	0, 
    	3
    );

    I hope this helps; please let me know.

    Thread Starter curtisnew

    (@curtisnew)

    Perfect, it’s exactly that ! Thanks a lot

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Great to hear, have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Label text of search bar’ is closed to new replies.