There was a currency selector before language selector, I hided it and now I want to add customized text(like: HK SAR - CHINA) just before the language selector. Is that possible? and how to do it?
Hi @InnoTier ,
Yes, it’s possible to add customized text (like “HK SAR - CHINA”) before the language selector on your Shopify store. Here’s how you can do it:
Follow these steps:
-
In your Shopify admin, go to Online Store > Themes.
-
Click on Actions > Edit Code.
Locate the File with the Language Selector:
-
You need to find the file where the language selector is located. This could be in the header.liquid file or within a specific snippet like language-picker.liquid or localization.liquid.
-
Check inside the Sections or Snippets folder for files related to the language selector.
Insert Customized Text:
-
Once you find the location of the language selector, you can add your custom text before it.
-
For example, if the language selector looks something like this:
{{ form | language_selector }}
- You can add your customized text like this:
HK SAR - CHINA
{{ form | language_selector }}
Style the Text (Optional):
- You can add custom CSS to style the text if needed. For example:
HK SAR - CHINA
Save and Preview:
- After making the changes, click Save and preview your store to ensure the text appears as desired.
- If I managed to help you then, don’t forget to Like it and Mark it as Solution!
To add the customized text (“HK SAR - CHINA”) before the language selector in your Shopify store
Find the Language Selector Code:
- Inside the header.liquid file, search for the language selector code. You can look for the following:
{{ form | language_selector }}
- The language selector code might be wrapped inside a form or located within a list item
- under the navigation.
Insert Customized Text:
- Once you find the line with the language selector code, add your custom text directly above it. For example, you can insert:
HK SAR - CHINA
{{ form | language_selector }}
Example of Modified Code:
- Your modified code in the header.liquid file should look something like this:
HK SAR - CHINA
{{ form | language_selector }}
You can wrap the text and selector in a
Hi @InnoTier ,
Follow these steps:
-
go to Online Store > Themes.
-
and click Actions > Edit code.
-
In the left-hand side of the code editor, locate the header.liquid
-
Find the code for the search icon. It is typically wrapped inside a
or -
Add your custom text before the search icon, like so:
HK SAR - CHINA
{{ form | language_selector }}



