Filtering & Sorting accordions are all open as default when page loads. With so many filtering options, Iām trying to close all the accordions for people to then click on and discover further.
Using Tinker 1.0.5
A user working with the Tinker 1.0.5 theme needed to change the default state of filtering and sorting accordions on collection pages from open to closed, as too many visible options were overwhelming visitors.
Solution provided:
theme.liquid file</body> tagOutcome:
The solution successfully resolved the issue. The user confirmed it worked perfectly, allowing customers to discover filtering options by clicking rather than seeing all accordions expanded by default.
Filtering & Sorting accordions are all open as default when page loads. With so many filtering options, Iām trying to close all the accordions for people to then click on and discover further.
Using Tinker 1.0.5
Hello @HBaars
Please follow the steps below after logging into the Shopify admin:
Go to your Shopify Admin panel.
Click on Online Store > Themes.
Find the theme you want to edit and then click Actions > Edit code.
Search theme.liquid
Insert the provided Script code at the above of the closing of the body() tag
SS : https://prnt.sc/_D8KD40wFkJK
Please hit Like and Mark it as a Solution if you find our reply helpful.
This worked perfectly - thank you!
Hello @HBaars
Glad to hear that! Happy to help ![]()