- This topic has 15 replies, 2 voices, and was last updated 2 years, 2 months ago by Ying.
-
AuthorPosts
-
February 28, 2019 at 2:46 pm #825027Kristin
Hello!
I’m using Generate Press Premium with Elementor Pro on my website. I’d like to use the WooCommerce Product Search field widget, however I would like to change the default style to look more like the general site search bar that I created using Elementor:
https://paste.pics/3aee2bac7fa8e0fbdba90118de0e97aeI’ve tried looking for some CSS snippets that might achieve this but am having no luck. Any suggestions you might have are greatly appreciated!!
Thank you!
February 28, 2019 at 2:48 pm #825029KristinFebruary 28, 2019 at 4:20 pm #825078DavidStaffCustomer SupportHi there,
tricky, might be able to get close (ish). Try something like this:
.woocommerce-product-search { border-radius: 40px; overflow: hidden; display: flex; flex-direction: row-reverse } .woocommerce-product-search input { border-radius: 0 40px 40px 0; border-left: 0 } .woocommerce-product-search button:before { content: "\f002"; font-family: GeneratePress; text-align: center; display: inline-block; font-size: 15px; } .woocommerce-product-search button { font-size: 0px; background-color: #fafafa; color: #666666; border: 1px solid #cccccc; border-right: 0; border-radius: 40px 0 0 40px; }
February 28, 2019 at 5:45 pm #825099KristinHi David,
Thanks so much for your quick response and suggestion!
It gets me about halfway there π
Adjusted Search BoxIs it possible to change the teal button color to white with a rounded edge to match the right side of the field? (Basically so the whole field looks like a pill shape)
And reduce the heigh so it’s not so “bulky”?
Also would be an excellent bonus to replace the “Search” label with a Font Awesome search icon??
Any suggestions are very much appreciated!!
February 28, 2019 at 5:49 pm #825101DavidStaffCustomer SupportCan you link me to the site? That code should have swapped the Seach button for the magnifying glass. You can edit your original topic and use the Site URL for privacy.
February 28, 2019 at 6:30 pm #825113KristinThanks David,
I added my site URL, but it’s a staging site so there are currently some passwords to reach the site…what is the best way to disclose them?
March 1, 2019 at 1:20 am #825312DavidStaffCustomer SupportYou can send them via the Account Issue form here:
https://generatepress.com/contact/
Please add the URL for this topic to the form so we can track.
March 1, 2019 at 8:46 am #825763DavidStaffCustomer SupportUpdated the CSS above
March 1, 2019 at 9:39 am #825809KristinThank you – I applied the updated CSS, but it looks the same…? (Cleared cache etc).
March 1, 2019 at 9:48 am #825823DavidStaffCustomer SupportOoops… made a mistake, corrected the CSS above… fingers crossed π
March 1, 2019 at 10:55 am #825887KristinYESSSS!! That did it!! Thank you SOOO much David!!! π
March 1, 2019 at 1:35 pm #825989DavidStaffCustomer SupportAwesome – glad to be of help π
February 15, 2022 at 6:06 pm #2120322SzymonHi, im beginning with php and can’t find a solution.
I’ve added woocommerce product search form to the nav bar. Now i would like to display a default GP search icon instead of the text button.
I found in searchform.php following function:
generate_get_svg_icon( 'search' )
, but still don’t know how to use this to replace the textto display woocommerce product search form in navigation bar i used this hook in my child theme:
add_action('generate_inside_navigation','generate_add_custom_search'); function generate_add_custom_search() { echo '<div class="custom-search">'; get_product_search_form(); echo '</div>'; }
I would apreciate any help <3
February 15, 2022 at 6:13 pm #2120329YingStaffCustomer SupportHi Szymon,
As the search form is added by a plugin, we are not able to tell how it works or if the text is filterable.
It’s better to contact the plugin support π
February 15, 2022 at 6:20 pm #2120343SzymonIt’s styling WooCommerce Product Search Widget as above… If i can find WooCommerce options in Customization menu of GeneratePress theme i hope you are here to help in this case.
-
AuthorPosts
- You must be logged in to reply to this topic.