Hide country selector

Hide country selector

TBS2023
Shopify Partner
102 1 7

Hello

How can i show only the currency and not the country name in my header?

https://yoga-spirit-mauritius.myshopify.com/

rtewth

 

Thanks

 

Replies 11 (11)

Moeed
Shopify Partner
4327 1113 1365

Hey @TBS2023 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
form#HeaderLanguageForm {
    display: none !important;
}
</style>

RESULT:

Moeed_0-1720534930410.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

BSS-TekLabs
Shopify Partner
539 155 182

- Here is the solution for you @TBS2023 
- Please follow these steps:

step.png

- Then find the base.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.localization-form {
 display: none !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1720534986999.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
TBS2023
Shopify Partner
102 1 7

I still want to show the currency selector but not the counntry name

BSS-TekLabs
Shopify Partner
539 155 182

Add the following code to your theme.liquid file before the " </head>" tag.

<script>
let text = document.querySelector("#HeaderCountryForm .disclosure .disclosure__button.localization-form__select font font").textContent.split(" | ")[1]
document.querySelector("#HeaderCountryForm .disclosure .disclosure__button.localization-form__select font font").innerText = text
</script>

BSSTekLabs_0-1720536711196.png

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
TBS2023
Shopify Partner
102 1 7

nothing happens 😞

BSS-TekLabs
Shopify Partner
539 155 182
<script>
window.onload = function()
{
    let text = document.querySelector("#HeaderCountryForm .disclosure .disclosure__button.localization-form__select font font").textContent.split(" | ")[1]
document.querySelector("#HeaderCountryForm .disclosure .disclosure__button.localization-form__select font font").innerText = text
};
</script>

@TBS2023  can you try it

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
TBS2023
Shopify Partner
102 1 7

still nothing

PageFly-Amelia
Shopify Partner
493 154 222

Hi @TBS2023 

This is Amelia from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code. 

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save

 

[aria-describedby="HeaderLanguageLabel"] {

    display: none;

}

 

Hope that my solution works for you.

Best regards,

Amelia | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.


Optimize your store’s mobile shopping experience with the Blum theme.

TBS2023
Shopify Partner
102 1 7

unfortunately - none of these options worked

PageFly-Amelia
Shopify Partner
493 154 222

please try again with this code

[aria-describedby="HeaderLanguageLabel"] {

display: none !important;

}

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.


Optimize your store’s mobile shopping experience with the Blum theme.

TBS2023
Shopify Partner
102 1 7

still nothing 😞