Button Hoover over change of color

Button Hoover over change of color

PhMA
Excursionist
45 0 6

Dear Community 🙂

We are using the refresh theme, how can I apply that upon hover over of the button the button fill will change 

reversed based on existing color schema, so for example I have the following buttons:

 

already filled buttons:

Screenshot 2024-09-20 at 10.50.22 p.m..png

 upon hover over the should change to this style :

Screenshot 2024-09-20 at 10.50.54 p.m..png

 

and then these button styles:

Screenshot 2024-09-20 at 10.52.22 p.m..png

upon hover over, they should get filled, like so:

Screenshot 2024-09-20 at 10.53.24 p.m..png

how to achieve that behavior?

 

thanks

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
8248 1977 2425

Hi @PhMA 

Would you mind sharing your store URL? And which buttons you like to add the hover? Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
PhMA
Excursionist
45 0 6

@Made4uo-Ribe  preview link: https://ahevwo2awzzu5sq4-61049766108.shopifypreview.com I'd like to have this behavior on all the buttons on the webpage, thanks

Made4uo-Ribe
Shopify Partner
8248 1977 2425

Thanks for the info, check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes"

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

{% if template.name == 'index' %}
<style>
a.button:hover {
    transition: box-shadow var(--duration-short) ease;
    -webkit-appearance: none;
    color: #66B2B2;
    background-color: white;
}
</style>
{% endif %}

 

And Save. 

Result:

Made4uoRibe_0-1726934522637.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
PhMA
Excursionist
45 0 6

@Made4uo-Ribe  many thanks, but:

 

on this wepage it is not working: https://n13b197j6p357krg-61049766108.shopifypreview.com

sobre matu ->¿Qué es Matu Mate®?

 

then "origen de yerba mate" subpage  -> at the bottom "mas productos" , its also not working

Ser Distribuidor footer page -> at the bottom "nuestros productos" its also not working

 

then all the buttons "aggregar al carrito" (to add to a basekt) on all the products, its not working -> there the "behavior" need to be the other way around....

PhMA
Excursionist
45 0 6