Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Greetings!
I have an image on my cart page:Which i only want to display, when people visit the Danish version of my site (www.ydale.dk)
I have multiple domains for each market (so swedish would be www.ydale.se)
Is this possible?
I am thinking something in the lines of a IF construct. but i am not very good at coding.
So:
If domain is (or starts with) www.ydale.dk then show image else *nothing/hide*
Is this possible?
Thanks in advance
I thought this would work, but it doesnt 😞
{% if (str_contains($url, "ydale.dk")) %}
<img src="https://cdn.shopify.com/s/files/1/2274/5315/t/11/assets/SST_Alkohol_2.jpg
" alt="Vi sælger kun alkohol til personer over 18">
{% else %}
{% endif %}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025