• Resolved Frank Spade

    (@spade)


    I like to remove the label »Suche …« from the search widget. If I wanted a label, I could add it when placing the widget in the sidebar. It’s also redundant with the button label.
    I tried:`function wpforo_search_form($html) {
    $html=str_replace(‘placeholder=”Suche … ‘,’placeholder=” ‘, $html);
    return $html;
    }
    add_filter(‘get_search_form’,’wpforo_search_form’);`
    But that didn’t do it.
    Any helpful idea would be greatly appreciated.
    Greetings, Frank

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • wpAlby

    (@wpalby)

    Hi @spade ,

    you can always add this simple CSS snippet in Appearance > Customise > Custom CSS:

    form.search-form label {
        display: none !important;
    }
    Thread Starter Frank Spade

    (@spade)

    Thanks. I owe you at least a coffee.
    Please remind me, when we shall meet 😉

    wpAlby

    (@wpalby)

    Hahaha glad to be of help, you are welcome!
    Nice idea 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove label from search widget’ is closed to new replies.