I’m looking to close a collapsible row when another one opens up for mobile and desktop on dawn theme
password samurai
I’m looking to close a collapsible row when another one opens up for mobile and desktop on dawn theme
password samurai
Hi @undercoverfresh ,
May I suggest to update code these steps:
document.querySelectorAll('.product__accordion [id^="Details-"] summary').forEach((sum) => {
sum.setAttribute('aria-expanded',false);
})
document.querySelectorAll('.product__accordion [id^="Details-"]').forEach((sum) => {
if(summary.parentElement.hasAttribute('open')!= sum.hasAttribute('open'))
sum.removeAttribute('open');
})
Hi @undercoverfresh , thanks for reaching out.
I checked your request and would like to inform you that the feature you’re looking for is related to the JavaScript of your store’s theme. In this case, I recommend you contact the theme developer or hire a Shopify developer for custom coding.
I hope my information is helpful to you.
Liz
Code didn’t work