Shopify themes, liquid, logos, and UX
Hi guys
I have a javascript code that works perfectly fine on my live server but stops working on Shopify. Can you find the mistake?
const form = document.querySelector('form');
const color = document.querySelectorAll('.main');
document.querySelector('form').addEventListener('change', function(e) {
var colorCodeD = [...form.querySelectorAll('input[type=radio]:checked')].map(element => element.value).join('');
color.forEach(element => {
element.classList.toggle('color1', colorCodeD === 's1');
})
selected.innerHTML = colorCodeD;
});
Hi all, the issue I'm having right now is my collection images are showing up with a black background. I've made sure that they have a transparent '
User | RANK |
---|---|
232 | |
152 | |
55 | |
52 | |
46 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023