Shopify themes, liquid, logos, and UX
Hey guys,
Looking to add a hover effect on each button so when you hover it changes color. But i need each button to be different colors.
Any help would be appreciated.
Solved! Go to the solution
This is an accepted solution.
Hi,
You change the color of hover by adding this css
button#quick-add-template--22881209352507__product-grid9641599566139-submit:hover {
background-color: #fb6445 !important;
}
button#quick-add-template--22881209352507__product-grid9604785439035-submit:hover {
background-color: #ff2800 !important;
}
button#quick-add-template--22881209352507__product-grid9641567158587-submit:hover{
background-color: #f2f427 !important;
}
button#quick-add-template--22881209352507__product-grid9614441054523-submit:hover{
background-color: #8fc128 !important;
}
button#quick-add-template--22881209352507__product-grid9605425594683-submit:hover{
background-color: #08c7e4!important;
}
Paste the above code in your base.css
Go to Online store > themes > Click on three dots of current active theme> edit code > search base.css in leftside bar > paste the above code.
I have also add the color for other two products you can adjust the color according to your needs.
If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!
Regards,
Sweans
Hello @Phreshcareco
i can do this .I can do this just tell me what color you want the hover on each button
Thanks
First one is #fb6445
Second one is #ff2800
Third one is #f2f427
Cheers thanks man
This is an accepted solution.
Hi,
You change the color of hover by adding this css
button#quick-add-template--22881209352507__product-grid9641599566139-submit:hover {
background-color: #fb6445 !important;
}
button#quick-add-template--22881209352507__product-grid9604785439035-submit:hover {
background-color: #ff2800 !important;
}
button#quick-add-template--22881209352507__product-grid9641567158587-submit:hover{
background-color: #f2f427 !important;
}
button#quick-add-template--22881209352507__product-grid9614441054523-submit:hover{
background-color: #8fc128 !important;
}
button#quick-add-template--22881209352507__product-grid9605425594683-submit:hover{
background-color: #08c7e4!important;
}
Paste the above code in your base.css
Go to Online store > themes > Click on three dots of current active theme> edit code > search base.css in leftside bar > paste the above code.
I have also add the color for other two products you can adjust the color according to your needs.
If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!
Regards,
Sweans
Hey @Sweans
Worked a treat thankyou so much, its just one line thats not working not sure why?
button#quick-add-template--22881209352507__product-grid9641599566139-submit:hover {
background-color: #fb6445 !important;
}
The rest are all good :). Think you can help me out and check please?
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024