Hide country selector

Hide country selector

TBS2023
Shopify Partner
291 1 37

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
7099 1906 2336

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

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


BSS-TekLabs
Shopify Partner
2401 695 831

- 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.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
TBS2023
Shopify Partner
291 1 37

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

BSS-TekLabs
Shopify Partner
2401 695 831

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.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
TBS2023
Shopify Partner
291 1 37

nothing happens 😞

BSS-TekLabs
Shopify Partner
2401 695 831
<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.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
TBS2023
Shopify Partner
291 1 37

still nothing

PageFly-Amelia
Shopify Partner
626 165 238

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!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


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

TBS2023
Shopify Partner
291 1 37

unfortunately - none of these options worked

PageFly-Amelia
Shopify Partner
626 165 238

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!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


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

TBS2023
Shopify Partner
291 1 37

still nothing 😞