Site logo

Archived topic

Search Bar Formating

5 replies · Started by mikeb82 on November 10, 2019

Viewing posts 1–6 of 6

When clicking on the Search icon, the search bar does not appear. It's there, and if you look carefully, you can see the cursor on the opposite side of the page from the search icon. Most site visitors would not notice the cursor. Also, the search text has the color of links. If you type a search term, search works as it should, although I would like for the search results page to not have a sidebar.

How do I get the search bar to appear as described in the documentation?

Thanks

I'm hesitant to use a beta version on a production client website.

For now, I would prefer to use CSS.

Thanks,
Mike

Try this:

.navigation-search input[type="search"], 
.navigation-search input[type="search"]:active,
.navigation-search input[type="search"]:focus {
    background-color: #000;
    color: #fff;
}

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

I had to add !important to both color and background to get the formatting to work, but it's working well now.

Thanks Leo!

No problem :)

Once the official version is released, you can remove the CSS and just use the customizer option instead :)

This archived topic is closed to new replies.