Shopify Dawn Theme - Show only on PT version

Topic summary

Goal: show a specific “complaints” navigation link only when the site is viewed in Portuguese (via the language selector) on a Shopify Dawn theme.

Proposed approach: add a Liquid conditional around the link so it renders only for the Portuguese locale:

  • {% if request.locale.iso_code == ‘PT’ %} …link… {% endif %}
  • request.locale.iso_code is the current visitor’s language/locale code.

Implementation details: the helper advises placing this condition where the link is defined and offered to provide theme-specific code upon reviewing the site. The requester asked where exactly to paste the snippet, noting they manage translations with the “Hextom: Translate My Store” app, and sent the store URL via private message.

Current status: no final implementation or confirmation yet. Next step is guidance on the exact theme file/section to edit (e.g., navigation/menu snippet or header). Screenshots were shared to show the menu item and language selector; no code files attached. The thread remains open pending specific placement instructions.

Summarized with AI on January 22. AI used: gpt-5.

Hi,

I have this on the navigation menu:

I would like to show this “complaints menu” only to those customers that choose portuguese language, on my website, in this selector:

Is it possible?

Thank you,

1 Like

Hi @tigas31

You need to add the following code to where your link is. If you can provide your website, I can provide you the specific code that will work.

Use the code as reference ONLY

{% if request.locale.iso_code == 'PT' %}
Your link code here...
{% endif %}

@Made4uo-Ribe I 've created this on the navigation menu:

So where do I paste this code?

For the translations, I’m using an app “Hextom: Translate my store”.

I’ve shared the url my website through provate message.