Jump to content

Multilingual website (mobile usability): Remove language switch when mobile menu is open

Recommended Posts

Posted
5 minutes ago, Naomi-lifelab said:

Site URL: https://lifelab.world/en/home

Hi everyone,

I have set up a multilingual site using bradgood tutorial. Now I am having difficulties on the mobile view.

The language switcher shows when the mobile menu is open. Can we please hide the language switcher when the mobile menu is open? Here is a photo for reference. 

Thank you so much!

Mobile menu view.png

Try adding to Home > Design > Custom Css

.is-mobile-overlay-active .language {
  display: none;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

  • 3 weeks later...
Posted

@bangank36 could you help me too? I also followed the brad good tutorial and everything works great on the desktop version. However, the switcher is not good for the mobile view. 

I tried what you said above, but it did not work (I am not the best at this...)

Ideally, I would like to have switcher somewhere in the mobile menu. If it is not something that can be done, I would prefer to remove it completely from the mobile version.

Thanks

url: https://www.panoraloges.ca/

image.png.af0c3ccc5ff481341c8781a7d60c94b2.pngimage.png.52ace7b1aeab5aaca78bb41084fe4311.png

Posted
1 hour ago, HP920 said:

@bangank36 could you help me too? I also followed the brad good tutorial and everything works great on the desktop version. However, the switcher is not good for the mobile view. 

I tried what you said above, but it did not work (I am not the best at this...)

Ideally, I would like to have switcher somewhere in the mobile menu. If it is not something that can be done, I would prefer to remove it completely from the mobile version.

Thanks

url: https://www.panoraloges.ca/

image.png.af0c3ccc5ff481341c8781a7d60c94b2.pngimage.png.52ace7b1aeab5aaca78bb41084fe4311.png

Try

@media only screen and (max-width: 767px) {
  .language {
    left: 250px;
    right: unset;
    transform: translate(-50%,-50%);
  }
}

to move it to the right.

Or

@media only screen and (max-width: 767px) {
  .language {
    display: none;
  }
}

to hide it

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.