Shopify themes, liquid, logos, and UX
I have this Online Store 2.0 supporting theme and I have added a text block to product page that should only be visible to logged out (guest) customers.
I found this code:
{% if shop.customer_accounts_enabled %} {% if customer %} {% else %} HERE GOES TEXT BLOCK {% endif %} {% endif %}
I was wondering what how exactly should I use this code and in what file, or do you have other suggestions of how to achieve this?
{% if shop.customer_accounts_enabled %} {% if customer %}
{% if template == 'product' %} {% else %} HERE GOES TEXT BLOCK
{% endif %} {% endif %} {% endif %}
User | RANK |
---|---|
227 | |
167 | |
66 | |
53 | |
53 |
On 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, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023