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 |
---|---|
133 | |
91 | |
76 | |
64 | |
52 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022