Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #739394

    Hi

    My site lists holiday homes (portfolio items) and when I do an ajax search Portfolio items are returned (as well as pages and posts)
    How do I change the name Portfolio Items in ajax search to Holiday Homes
    I am using enfold child theme

    Brian

    #740987

    Hi briandeeney!

    Thank you for using Enfold.

    Please add this filter in the functions.php file:

    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 == 'Portfolio Items') $label = 'Holiday Homes';
         return $label;
    }

    Regards,
    Ismael

    #741183

    Hi Ismael

    Thanks for that – worked perfectly

    Brian

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change Portfolio Item in ajax search’ is closed to new replies.