- This topic has 31 replies, 4 voices, and was last updated 3 years, 6 months ago by
Justin.
-
AuthorPosts
-
August 1, 2022 at 2:56 pm #2300209
Justin
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?August 1, 2022 at 6:56 pm #2300285Fernando Customer Support
Hi Justin,
Can you share the link to your site?
You may use the private information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
August 1, 2022 at 7:08 pm #2300297Justin
My site is currently in staging so I do not have a link to share
August 1, 2022 at 8:04 pm #2300311Fernando Customer Support
I see. What search bar are you using? Is it the one from GP or from WP?
August 2, 2022 at 6:57 pm #2301368Justin
Search bar created in GP with elements
August 2, 2022 at 7:07 pm #2301375Fernando Customer Support
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.
August 5, 2022 at 5:55 pm #2304788Justin
didn’t work
August 6, 2022 at 3:08 am #2304971David
StaffCustomer SupportHi there,
are you using a Block Element ? And is it a Search Block that you used ?
September 13, 2022 at 11:47 am #2342014Justin
Yea I made it in element and used the search block
September 14, 2022 at 2:25 am #2342433David
StaffCustomer SupportAs 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.
September 14, 2022 at 5:23 pm #2343205Justin
How can I remove the little box around the search icon and anyway I can make the search rectangular box rounded on the edges?
September 14, 2022 at 5:39 pm #2343215Fernando Customer Support
Can you re-share the link to the site in question?
You may use the Private Information field for this: https://docs.generatepress.com/?s=private+information
September 15, 2022 at 7:22 am #2343733Justin
my site is still not public or active
September 15, 2022 at 8:59 am #2343990David
StaffCustomer SupportCan you share a screenshot of the search block with the toolbar visible as i did here:
https://generatepress.com/forums/topic/customize-the-search-bar-2/#post-2342433
Then we can advise on how to style it – but we need to know what settings you’re using so we can replicate it locally.
September 15, 2022 at 12:52 pm #2344155Justin
How do I attach it?
-
AuthorPosts
- You must be logged in to reply to this topic.