Site logo

Archived topic

Search Widget

8 replies · Started by Uwe on September 27, 2021

Viewing posts 1–9 of 9

Hello.
How can i delete the lable "Search" above the Search-Widget?
Because the Search-Button is already with "search" labled so i dont need it two times.

Hello Leo,
see below ...

Hello Leo,
i have not published the Site until now.
I mean the Lable-HTML-Element. I want delete the lable of the Search input field from the Header-Search-Widget.
You see the coplete Header-Code inclusiv the Search-Widget. And you see the lable over the Input Field, this is what i want to delete in any way ...

`<header id="masthead" class="site-header" itemtype="https://schema.org/WPHeader" itemscope="">

<h1 class="main-title" itemprop="headline">

Eliquidbutler

</h1>
<p class="site-description" itemprop="description">
Aromen, Liquids, selbst mischen
</p>
<aside id="block-9" class="widget inner-padding widget_block widget_search"><form role="search" method="get" action="http://eliquidbutler.blog/" class="wp-block-search__button-outside wp-block-search__text-button wp-block-search"><label for="wp-block-search__input-1" class="wp-block-search__label">Suchen</label>

<input type="search" id="wp-block-search__input-1" class="wp-block-search__input" name="s" value="" placeholder="" required=""><button type="submit" class="wp-block-search__button ">Suchen</button>

</form></aside>

</header>

Leo, i dont published the website so i cant send you a link, this is why i send you the concerned Code, wher is my issue ...

It's difficult to help just by looking at the code.

Can you try this CSS if it helps?

.wp-block-search .wp-block-search__label {
    display: none;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

If not please start a staging site so I can see the issue live.

Thanks!

Leo, i understand but thats the only way in the moment.
And thank you, the CSS code you send me, is working.
Thanks

No problem :)

This archived topic is closed to new replies.