Liquid, JavaScript, themes, sales channels
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!
User | RANK |
---|---|
37 | |
28 | |
14 | |
13 | |
9 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023