Shopify themes, liquid, logos, and UX
Hello,
I have a website where i have products with a big description and i am wondering if i can have them auto closed so only if the costumers want to read it they can open it, because right now they are auto open everytime.
TOYO theme
"https://fusionwave.dk/products/friskmixer%E2%84%A2" my one product
Thank you!
Hi yes this can be done with some custom code also there will be an option in the theme to auto close by default.
either im blind or there isnt a button there...
if possible could u send a screenshot?
Open theme.liquud file from the theme files find a phrase that say </body> in that file and paste the code very above of this phrase like
//your code
</body>
<script>
window.addEventListener('load', function() {
document.querySelector('.product .product__accordion.accordion details').removeAttribute("open");
});
</script>
</body>
Hello @Hartnum
Please follow the steps below after logging into the Shopify admin:
<script>
window.addEventListener('load', function() {
document.querySelector('.product .product__accordion.accordion details').removeAttribute("open");
});
</script>
Please hit Like and Mark it as a Solution if you find our reply helpful.
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Shopify Partner | Shopify Development Agency | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9
i dont understand the last bit u wrote? before the closing of the (</body>) tag?
if possible can u send a screenshot
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey 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, 2024