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 %}
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