Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
What I am trying to do:
Where I am at:
The following have worked thus far:
{% unless template.suffix == 'opt-in-page' %}
{% section 'announcement' %}
{% section 'header' %}
{% endunless %}
And this works:
{% unless template.suffix == 'opt-in-page' or template.suffix == 'opt-in-page-2' %}
{% section 'announcement' %}
{% section 'header' %}
{% endunless %}
What I tried and did NOT work (assuming that the * is a normal wildcard character):
{% unless template.suffix == 'opt-in-page*' %}
{% section 'announcement' %}
{% section 'header' %}
{% endunless %}
I anticipate dozens of nearly-identical opt-in pages over the coming year and do not want to have to add code to this file every time I make one if they all follow the same naming convention.
Thanks in advance for any suggestions on how to use the wildcard!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025