Site logo

Archived topic

Search box edit

10 replies · Started by Bebe on March 9, 2018

Viewing posts 1–11 of 11

Try adding this in the header-right div:
get_search_form();

ok, so how is that supposed to be added to the code?

Where does it go in here? (and I need it to just be a search box...not a huge button with it)

<div class="grid-25 header-right">
</div>

That can go into the HTML content.

Style-wise, that's just the default WordPress search box. Perhaps look for a plugin if you have a specific style you are going for?

Just a simple small search box. Nothing huge or with a large button on it.

And what I'm asking is that you give me the full code to insert the search box. What you pasted above isn't showing up (obviously because there's not one on the site).

In fact, no code I'm using on that hook is showing up.

Sorry I forgot the php part.

Try this and make sure execute PHP is checked:

<div class="grid-25 header-right">
    <?php get_search_form(); ?>
</div>

I do see hooks content showing up already.

Thanks. That's the form I need to modify the look of. I need that search button to be hidden. or at the very least smaller and to the right of the text box.

Try this CSS:

.header-right .search-submit {
    display: none;
}
This archived topic is closed to new replies.