Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello all! 👋
Hoping someone has encountered this problem before... my Shopify store is on the Expanse theme.
On my product pages, I have a couple of collapsible/accordion tabs that are hidden by default (i.e. the user has to click the down arrow to expand the tab and view the info).
I'd like one of the tabs to be open by default – i.e. the user doesn't need to click to collapse, the info is visible by default.
Does anyone have any idea how to do this in the Expanse theme? I've seen multiple solutions for the Dawn theme but can't seem to find anything for Expanse.
Thanks in advance!
I found this question while trying to solve this myself and it may be too late but I figured it out!
Go to Edit Code>snippets/tab.liquid
at the top of the page above {% if output_tab %} replace that code with this:
{%- liquid
assign output_tab = true
if title == blank and content == blank
assign output_tab = false
else
if title == "[name of your tab here]"
assign force_open = true
endif
endif
-%}
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