Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

Language Switcher overflow from navbar in mobile site

Started by Matthias Urban 9 years ago · 0 replies · 757 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 stuart young, 2 weeks ago
3 251 2 weeks ago
Themes & Styling · by Sebadamus, 3 weeks ago
5 317 2 weeks ago
Themes & Styling · by martynfoster735, 4 weeks ago
1 310 4 weeks ago
Themes & Styling · by Justin Young, 1 month ago
1 348 1 month ago
Themes & Styling · by Slebeig, 2 months ago
4 474 2 months ago