How can I change the word “Products” that appears in the ajax search menu results to “Resources”
Hey danieltjohnston,
To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Best regards,
John Torvik
Here’s the url:
Hi danieltjohnston,
What is the word that we have to search for to get that?
Best regards,
Victoria
Hi,
You can try searching for the word “Christmas”
Hi,
You can try adding this custom code in your functions.php
function replacing_searchtext() {
jQuery(".ajax_search_response h4").append("Employees");
}
Best regards,
John Torvik
Thanks for your help.
That didn’t seem to work. Here’s the part of the search that I’d like to change:
Hi,
Please give us a link of your web site, lets see if we can target the specific class and replace the CSS attribute content with whta you need.
it is an idea, lets see if we can make it happen!
Best regards,
Basilis
Thanks. Here’s the link: http://www.learninggoodnews.com
Hi,
Please use the “avf_ajax_search_label_names” in the functions.php file. Example:
add_filter('avf_ajax_search_label_names','avf_ajax_search_label_names_mod', 10, 1);
function avf_ajax_search_label_names_mod($label)
{
if($label == 'Products') $label = 'CHANGE THE LABEL HERE';
if($label == 'Portfolio Items') $label = 'CHANGE THE LABEL HERE';
return $label;
}
Adjust the label as needed.
Best regards,
Ismael