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

    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!

    #343323

    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

    #343721

    Perfect. Thanks for the help!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Customize Header Text in Search Results’ is closed to new replies.