GastonDuflos Posted October 10, 2023 Posted October 10, 2023 Hi everyone, I need a bit help with my product page when on mobile. I use buttons to select variants, and for default it has an hover effect, I'm ok with the effect when using it on desktop. But on mobile, it does something weird, where the hover effect colour remains active once it has been selected. I want it to be black, like the ADD TO CART BUTTON. So my question is, is there any way to deactivate or change the colour of the hover effect for VARIANTS ON MOBILE ONLY? Thank you so much! My website: https://www.gastonduflos.com/shop/p/bondi-beach-print-ap001 Thank you as always! @tuanphan
tuanphan Posted October 12, 2023 Posted October 12, 2023 You can add this to Website Tools (under Not Linked) > Custom CSS /* Variant buttons on mobile */ @media screen and (max-width:767px) { .variant-option label.sqs-button-element--secondary { background-color: black !important; } } Lesum 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
GastonDuflos Posted October 24, 2023 Author Posted October 24, 2023 Thanks @tuanphan this code made all of the buttons full black on mobile. I do want them to look light grey like in the desktop version , my problem is with the hover effect colour. It remains active once it has been selected. I want it to be black, like the ADD TO CART BUTTON, but only the selected button and hover effect for the selected button on mobile. Can we do this? Thank you! Thank you so much! My website: https://www.gastonduflos.com/shop/p/bondi-beach-print-ap001 Thank you as always! @tuanphan
tuanphan Posted October 27, 2023 Posted October 27, 2023 Use this code @media screen and (max-width:767px) { .ProductItem-details .variant-radiobtn-wrapper input[type="radio"]:checked+label { background-color: #000 !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment