Change Header Replace Search Default Text

This is a Developer Level doc.

If you're unfamiliar with PHP and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.

If you want to alter the Header Replace Search default text, use the following PHP snippet:

NOTICE: Please make sure to update your OceanWP theme to 1.8.6 version or above in order to use this code snippet.

/**
 * Change the default Header Replace Search text
 */
function myprefix_ocean_header_replace_search_text() {
	return 'YOUR TEXT HERE';
}
add_filter( 'ocean_header_replace_search_text', 'myprefix_ocean_header_replace_search_text' );

Change YOUR TEXT HERE with your own text or translation.

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.