Change search text "Type here" and "Search"

How can i change the phrases of the search in the top menu?
Eg. I would like to change the text “Type here” to “ABC” and the text “Search” to “XYZ”.

Thx.

Hi @daduda,

I hope you are well today and thank you for your question.

You can try achieving this by using the attached small plugin specially developed for you that contains following custom code.

function colorlib_change_translate_text2( $translated_text, $text, $domain ) {
	if (strpos($translated_text,'Type Here') !== false) {
            $translated_text = str_replace("Type Here","ABC", $translated_text);
        } else if (strpos($translated_text,'Search') !== false) {
            $translated_text = str_replace("Search","XYZ", $translated_text);
        }

	return $translated_text;
}
add_filter( 'gettext', 'colorlib_change_translate_text2', 99, 4 );

Best Regards,
Movin

Awesome, I tried many times to change that.
Is it possible to search results go to woocommerce results? I mean, now they end up on something like this: http://siteurl.com/?s=test

but, woocommerce goes to: http://siteurl.com/?s=test&post_type=product

thank you.

@rafaelb This is old topic and the theme is changed a lot so to help us keep support thread separates could you please create your own thread for your question here https://colorlibsupport.com/c/shapely/ instead of replying on others thread as it makes the thread messy and hard to read.

If you want to you can also add reference of this thread in your newly created thread.

We would be more than happy to help you on your new thread.