Reply To: Enter predefined text in searchbox

Home Forums Support Enter predefined text in searchbox Reply To: Enter predefined text in searchbox

Home Forums Support Enter predefined text in searchbox Reply To: Enter predefined text in searchbox

#151337
Tom
Lead Developer
Lead Developer

Hi there,

Give this function a try:

add_filter('generate_search_placeholder','generate_custom_search_placeholder');
function generate_custom_search_placeholder() 
{
      return 'Enter your search term here';
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/