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 |
---|---|
211 | |
146 | |
66 | |
46 | |
45 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023