Shopify themes, liquid, logos, and UX
I'm looking to have all of the search filters automatically expanded by default instead of just the first one. Currently using the Empire theme. I've found a few suggestions online but none have worked so far. Any input would be appreciated!
It needs code change for collection file and make all filters to display block in css. Then it can show only
Yes but i'm stuck as to the code changes needed, that is why i'm reaching out for help. All of the suggestions i've found online weren't helpful.
Did you find a solution to this? I'm trying something similar. I would like to control which filter is expanded by default.
Did you go with the Empire theme? I found that it offers to have all of the filters expanded by default. Unfortunately, it's an expensive theme.
Interesting - I already bought Empire, but I'll check out Enterprise for future consideration. I've submitted several support requests to the creator of Empire and have yet to receive an answer in almost a week now....
Hello,
I know this is a bit late but in case someone falls upon this, I was able to achieve this through code on Dawn theme.
The trick is to add "open" in the "Details" element.
By default the first filter is set to open but the rest of the filters are collapsed. You can find the code in the file "snippets/facets.liquid".
The line to edit is line 371, and you need to change the code from forloop.index == 1 to whatever your need is.
I'm currently using Dawn with the Search & Discovery app.
Hope this helps.
Thanks for this! I'm also Dawn and Search & Discovery App.
Have you had any issues with filters where "open" doesn't default them to expanded. I removed forloop.index == 1, so that when vertical all filters should default expanded. I verified in the output html code that open is present for both of my filters, "Price" and "Section" (metafield), but only the Price filter is expanded on page load. Any ideas?
Never mind. There's an additional section that needs to be updated for boolean or List type filters. It's the same change as indicated above by Joseph123123, but it's on line 136.
i also want to add this feature in my shopify store. can you guide me regarding this? I don't want to use any app or plugin due to site load speed
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024