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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Language Switcher overflow from navbar in mobile site

Started by Matthias Urban 9 years ago · 0 replies · 615 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 Pedro M, 2 months ago
4 195 2 months ago
Themes & Styling · by Ian, 2 months ago
3 91 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 451 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 45 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 125 3 months ago