Search Results For Astra < 2024 >
To modify the text that appears on your Astra theme search results page or within the search box itself, you can use the built-in WordPress Customizer or add custom code to your child theme's functions.php file. 1. Change "Search Results For:" Heading
function change_nothing_found_text( $strings ) { $strings['string-search-nothing-found'] = __( 'Oops! We couldn\'t find any matches.', 'astra' ); return $strings; } add_filter( 'astra_default_strings', 'change_nothing_found_text', 10 ); Use code with caution. Copied to clipboard Search Results for astra
If "proper text" refers to the or size of the search results: To modify the text that appears on your
This method allows you to replace the default label with something like "You looked for:". 2. Change Search Bar Placeholder Text We couldn\'t find any matches
To customize the message shown when no results are found, you can use the astra_default_strings filter:
: Go to Customize > Global > Typography to set site-wide fonts, which will affect the search results.