Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1003179

    Hello,

    I would like to remove the red marked lettering (see picture) “Portfolio Einträge”. Because a visitor should not know that it is a portfolio entry. (It’s only about the label, not about the entries, because they should still be displayed.)

    Unfortunately I haven’t found any settings for the search bar. I hope someone can help me here.

    Screenshot: https://picload.org/view/dlcwgwil/enfoldsuche.png.html

    Thank you in advance.

    • This topic was modified 6 years, 3 months ago by platin611.
    #1003370

    Hey platin611,

    Thanks for the screenshot. Could you post a link to the page in question as well so that we can take a closer look please?

    Best regards,
    Rikard

    #1003533

    Hey Rikard,
    thank you for your answer. Because the website is currently not publicly accessible, I have set up an account for you.

    It’s about the “ajax” search in the header. You can enter anything to test it. E.g. “flug”. Then you see the label that declares the results as portfolio entries.

    Thanks for your help.

    Many greetings
    Felix

    #1003538

    Hi,

    You can add this code to the child theme functions.php to remove the portfolio label:

    
    add_filter('avf_ajax_search_label_names','avf_ajax_search_label_names_mod', 10, 1);
    function avf_ajax_search_label_names_mod($label)
    {
         $label = '';
         return $label;
    }
    

    Best regards,
    Dude

    #1003572

    Thank you very much, it works wonderfully! :)

    #1003693

    Hi,
    Great, glad we could help you :)

    Best regards,
    Dude

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Search bar (hide label "portfolio entries")’ is closed to new replies.