Modify theme Dawn, add language selector in the header?

Topic summary

A user wants to relocate the language and country selector from the footer to the header in Shopify’s Dawn theme.

Current Situation:

  • The user found localization code in their footer.liquid file but is uncertain how to proceed
  • The existing code shows both country selector (with currency display) and language selector implementations
  • Both selectors are currently configured within the footer section with enable_country_selector and enable_language_selector settings

Technical Details:

  • The code includes both JavaScript and no-JavaScript fallback versions
  • Uses Shopify’s localization form with dropdown disclosure patterns
  • Displays country names with currency codes and language options

Status:
The discussion remains open with no solution provided yet. The user needs guidance on modifying the theme code to move these selectors to the header section.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

Hi ! I would like to show the Language and City selector in the header instead of in the footer. Can someone help me modify the code?? I use Dawn theme.

I dont have this code in the footer.liquid file ?? :flushed_face:

Here is what I can find that talk about language selector or country selector :

{%- if section.settings.enable_country_selector and localization.available_countries.size > 1 -%} {%- form 'localization', id: 'FooterCountryFormNoScript', class: 'localization-form' -%}

{{ 'localization.country_label' | t }}

{% render 'icon-caret' %}
{{ 'localization.update_country' | t }} {%- endform -%} {%- form 'localization', id: 'FooterCountryForm', class: 'localization-form' -%}

{{ 'localization.country_label' | t }}

{{ localization.country.name }} ({{ localization.country.currency.iso_code }} {{ localization.country.currency.symbol }}) {% render 'icon-caret' %}
{%- endform -%} {%- endif -%}

{%- if section.settings.enable_language_selector and localization.available_languages.size > 1 -%}

{%- form ‘localization’, id: ‘FooterLanguageFormNoScript’, class: ‘localization-form’ -%}

{{ 'localization.language_label' | t }}

{% render 'icon-caret' %}
{{ 'localization.update_language' | t }} {%- endform -%} {%- form 'localization', id: 'FooterLanguageForm', class: 'localization-form' -%}

{{ 'localization.language_label' | t }}

{{ localization.language.endonym_name | capitalize }} {% render 'icon-caret' %}
{%- endform -%} {%- endif -%}
{%- if section.settings.payment_enable -%}
{{ 'sections.footer.payment' | t }}
    {%- for type in shop.enabled_payment_types -%}
  • {{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
  • {%- endfor -%}
{%- endif -%}