Re: How to remove the location selector from the Mobile Menu?

How to remove the location selector from the Mobile Menu?

ethniccloset
Visitor
2 0 0

I need to remove the country/region selector from my shopify store, I have already disabled the option from the header and it is not visible on the website when I am opening it on laptop, however it is still showing on the menu in the mobile website version, How to fix this? Seems like this is a bug.

Replies 5 (5)

PageFly-Oliver
Shopify Partner
878 190 185

Hi @,

 

You can try this code by following these steps:

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

Step 2: Search file theme.liquid

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

 

<style>
@media(max-width:767px){
[class*="localization"]{
display:none !important
}
}
</style>

 

 

Hope my solution works perfectly for you!

Best regards,

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

BSS-Commerce
Shopify Partner
3477 463 549

Hi @ethniccloset ,
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


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


BSS Commerce - Full-service eCommerce Agency
ethniccloset
Visitor
2 0 0
The Ethnic Closet – The ethnic closet <>
BSS-Commerce
Shopify Partner
3477 463 549

Hey @ethniccloset ,

To do this, go to your admin page. Then select Online store -> Select Edit code action. In the dev tools section, find the base.css file, and add the following code to the last part of the file:

 

.menu-drawer__localization {
display: none !important;
}

Result:

view - 2023-12-26T095014.472.png 

Hope it works @ethniccloset 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


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


BSS Commerce - Full-service eCommerce Agency
officialkusp
Visitor
1 0 0

Hello, I know it's been a while, but do you think you could modify the code so that only the language selector is displayed? without the code you wrote the bug shows language selector and country/region on mobile, but I would like to only show the language selector, and the code allows neither of them to show. Thank you.