Hello,
I have a widget that I added in a Custom Liquid on a page, and I want to be able to change change if depending the language of the user, is there like a class for eng, etc that I can use to show and hide content?
I want to be able to hide the spanish widget when the user is on english.
Thank you.
1 Like
@12alberto34 Try adding below condition in your Custom Liquid and let me know whether it is helpful for you.
{% if shop.locale == “es” %}
{% elsif shop.locale == “en” %}
{% endif %}
Please provide your support by click “Like” and “Accepted” if our solution works for you. Thanks for your support.
3 Likes
Thank you very much, I was searching for this! it worked