Have menu already open when visiting the website on mobile
-
Hello.
Did anybody already try (and manage) to have the mobile menu already open when visiting the website? So, instead of showing only the category projects (as "landing page" as it is in desktop mode), on a mobile I would like to show directly the whole menu.
Of course, this should be the same menu as the one that opens when I am visiting a specific project and would then click on the burger icon.
We suppose this has to be done via some javascript, but for the time being we didn't manage to find a script that works with Laytheme.
Any hint would be appreciated.
Thanks. Helen
-
Dear @LN
it is very simple to code that script yourself:Basically you just need a simple jQuery function which runs when the page gets loaded.
http://laytheme.com/documentation.html#custom-javascriptIt should add a couple of classed to some elements which are related to the menu. As well it should change some CSS values to make it visible.
Have a look at the inspector (right click on menu -> inspect element with Chrome).
Hope that helps!
Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it