Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Have menu already open when visiting the website on mobile

Have menu already open when visiting the website on mobile

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 48 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LN
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      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-javascript

      It 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).

      1_1578570940414_Bildschirmfoto 2020-01-09 um 12.53.22.png

      0_1578570940412_Bildschirmfoto 2020-01-09 um 12.53.16.png

      Hope that helps!

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      I also code custom websites or custom Lay features.
      šŸ’æ Email me here: šŸ’æ
      info@laytheme.com

      Before you post:
      1. When using a WordPress Cache plugin, disable it or clear your cache.
      2. Update Lay Theme and all Lay Theme Addons
      3. Disable all Plugins
      4. 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:
      1. Post a link to where the problem is
      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
      Online Users
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Search