Hi,
I was wondering how I could go about changing the “Header” text in the search results drop-down? I’m using a child theme.
For example: How would I change “Portfolio Items” to “Products”?
Link to image: http://bakpocket-paks.com/wp-content/uploads/2014/10/search-results-header-text.jpg
Thanks!
Hey dwill21!
In functions.php of the child theme you can add a filter hook to change the Text like:
add_filter ('avf_ajax_search_label_names', 'my_new_label_name', 10, 1);
function my_new_label_name($label)
{
if($label == 'Portfolio Items')
{
$label = 'Products';
}
return $label;
}
Best regards,
Günter
Perfect. Thanks for the help!