Site logo

Archived topic

Customize the search bar

31 replies · Started by Justin on August 1, 2022

Viewing posts 1–15 of 32

I want to customize the search bar.
I added the search bar on the right sidebar by using elements.
However, there is no function to customize the search bar.

Therefore, I will have to change it by adding code to CSS.
I don’t want to use any plug-in.

Can you advise how I can modify the code for search bar?
I want to make the search borders round on the edges and add text “Search…” inside with the color blue?

My site is currently in staging so I do not have a link to share

I see. What search bar are you using? Is it the one from GP or from WP?

Search bar created in GP with elements

If you’re using the WP Search Block, you can add the placeholder to the block itself.

In terms of design, here are a couple of CSS you can try adding through Additional CSS:

input[type="search"] {
    border: solid 3px #0000ff;
    border-radius: 20px;
    color: #0000ff;
}

input[type="search"]::placeholder{
    color: #0000ff;
}

You may modify theme as well to your preference.

didn't work

Hi there,

are you using a Block Element ? And is it a Search Block that you used ?

Yea I made it in element and used the search block

As we can't see it on the front end, we need to know what settings you have on the search block - see here:

https://www.screencast.com/t/bmgoHybuO

NOTE: If you don't require a Search Label then you should Toggle that first toolbar option to Off.

How can I remove the little box around the search icon and anyway I can make the search rectangular box rounded on the edges?

my site is still not public or active

How do I attach it?

This archived topic is closed to new replies.