Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Language Switcher overflow from navbar in mobile site

Started by Matthias Urban 9 years ago · 0 replies · 933 views
9 years ago

Hi

I'm working on my own theme based on the Grav One Page Theme.

My problem:
How can I hide the language selection from the 'LanguageSwitcher' plugin in the mobile view of my web site because there is an overflow (see picture). Is there any way to work with conditions (for html classes?) to check if the web site is in 'desktop' or 'mobile' view?
With the 'mobile' site at the top showing the avaiable language is no problem because it is in the headerimage. But after scrolling down the language selection disrupts the site view. Maybe it is possible to deactivate the language selection after scrolling down?

Thanks.
LanguageSwitcher_mobile|311x500

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 2 weeks ago
3 193 2 weeks ago
Themes & Styling · by TomW, 2 weeks ago
0 111 2 weeks ago
Themes & Styling · by themetman, 3 weeks ago
1 206 3 weeks ago
Themes & Styling · by AH, 1 month ago
1 324 3 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1523 3 weeks ago