Hey, I am building my store but I have a problem, when I hover over my add to cart button on the collection page, the colour does not change, which would be ideal. Does anyone know how to? Thanks in regard!
PASSWORD: mohwhi
THEME: TASTE
Hey, I am building my store but I have a problem, when I hover over my add to cart button on the collection page, the colour does not change, which would be ideal. Does anyone know how to? Thanks in regard!
PASSWORD: mohwhi
THEME: TASTE
Hi @PRETTYFRIDAYS ,
Please follow these steps:
Online store → Edit code → find base.css file
Copy this code to the end of the file:
.quick-add__submit.button:hover {
color: color-you-want
border-color: border-color-you-want
border-color: border-color-you-want
}
For example:
.quick-add__submit.button:hover {
color: red
border-color: yellow
border-color: blue
}
Hope it works @PRETTYFRIDAYS
Hey! Does not work unfortunately
Hi @PRETTYFRIDAYS ,
Try this again:
Step 1: Online store → Edit code
Step 2: Find the base.css file, and add this code to the end of the file:
.quick-add__submit.button:after {
display: none;
}
Step 3: Find the theme.liquid file, add this code to the end of the file:
<script>
var quickAddBtns = document.querySelectorAll('.quick-add__submit.button');
quickAddBtns.forEach(quickAddBtn => {
quickAddBtn.style.border = "1px solid black"
quickAddBtn.addEventListener('mouseenter', function () {
quickAddBtn.style.color = "text-color-you-want"
quickAddBtn.style.border = "1px solid border-color-you-want"
quickAddBtn.style.backgroundColor = "background-color-you-want"
})
quickAddBtn.addEventListener('mouseleave', function () {
quickAddBtn.style.color = "black"
quickAddBtn.style.border = "1px solid black"
quickAddBtn.style.backgroundColor = "transparent"
})
});
</script>
Result:
**Hope it works @PRETTYFRIDAYS **