-
AuthorPosts
-
November 17, 2019 at 5:54 pm #1157662
Hi,
in my WooCommerce shop the buttons for “add to cart” resp. “choose version” are currently black with blue colors for the text. These colors I would like to change:
– background
– background on hover
– text
– text on hoverI know WooComm is referring to the settings within the enfold panel, but I did not find a way to adjust this for the shop buttons only.
Your help is highly appreciated – thx a lot in advance & best regards Tilman
November 17, 2019 at 9:13 pm #1157686Hey Tilman,
Thanks for the link, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:.wc-block-grid__product-add-to-cart a.wp-block-button__link { background-color: red !important; color: white !important; } .wc-block-grid__product-add-to-cart a.wp-block-button__link:hover { background-color: green !important; color: yellow !important; }
Please adjust the colors to suit, and after applying the css, Please clear your browser cache and check.
Best regards,
MikeNovember 17, 2019 at 10:39 pm #1157694hey Mike,
cool, this works :-)I´ve tried to add modify the button border color as well but the code I´ve chosen seems to be wrong:
border-color: blue !important;
-> how to change the code?
Thx again and best regards, Tilman
November 18, 2019 at 12:02 pm #1157823Hi,
This is becauseborder-width
&border-style
have both been set to zero or none, to add this to the code above it would look like this:.wc-block-grid__product-add-to-cart a.wp-block-button__link { background-color: red !important; color: white !important; border: solid 3px blue !important; } .wc-block-grid__product-add-to-cart a.wp-block-button__link:hover { background-color: green !important; color: yellow !important; border: solid 3px red !important; }
Please adjust to suit, after applying the css, Please clear your browser cache and check.
Best regards,
MikeNovember 18, 2019 at 12:37 pm #1157843very good Mike – thx a lot :-)
November 19, 2019 at 8:36 am #1158046Hi,
Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJune 18, 2023 at 5:30 pm #1411018It does not work.
Any help please?
June 18, 2023 at 10:44 pm #1411021Hi,
@zanon8 Since this thread is from 2019 and the solution was for specifically this user situation it may not work for you.
Please open a new thread with the url to the page in question and a explanation of the issue and an admin login so we can be of more assistance.
Since this is not your thread posting your admin login here will not be private and you will not see our comments in the Private Content area, thank you for your patience and understanding and using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘change woocommerce button color’ is closed to new replies.