Shopify themes, liquid, logos, and UX
Hi everyone, I tried following this addition
to the product code but keep getting this error:
Solved! Go to the solution
This is an accepted solution.
Open main-product.liquid file from your code editor and paste this at the bottom of everything
<script>
document.addEventListener('DOMContentLoaded',()=>{
const tab = document.querySelector('.product .product__accordion');
tab.querySelector('details').setAttribute('open','');
tab.querySelector('summary').setAttribute('aria-expanded','true');
})
</script>
This will open the first one of the tabs on load
Share the store url.
This is an accepted solution.
Open main-product.liquid file from your code editor and paste this at the bottom of everything
<script>
document.addEventListener('DOMContentLoaded',()=>{
const tab = document.querySelector('.product .product__accordion');
tab.querySelector('details').setAttribute('open','');
tab.querySelector('summary').setAttribute('aria-expanded','true');
})
</script>
This will open the first one of the tabs on load
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024