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. Hide top menu

Hide top menu

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 92 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.
  • S Offline
    S Offline
    saralandeira
    wrote on last edited by
    #1

    Hello, I would like to hide the top menu /navbar of specific pages of my website, such as this one:

    https://what-the.studio/npfst-daphne

    But I'd like to hide it only on the mobile version.
    I tried with something like this in the custom CSS, but didn't work:

    .slug-npfst-daphne navbar .laynav {
    display:none !important;
    }

    Thanks!

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

      Dear @saralandeira

      Yes, the mobile elements are a bit different. The Site-title and Burger Menu sit outside the navbar. Let me know if this code works for you:

      .slug-npfst-daphne .navbar,.slug-npfst-daphne .mobile-title, .slug-npfst-daphne .lay-mobile-icons-wrap {
        display:none;
      }
      

      Result:
      Screen Shot 2021-10-06 at 11.47.19 AM.png


      Best wishes @saralandeira & talk soon šŸŒ
      Richard
      1 Reply Last reply
      0
      • G Offline
        G Offline
        GAP
        wrote on last edited by
        #3

        Hey!
        Hope is all good. I have a similar request.
        I'd like to display set the burger as default menu for all the breakpoints. I will have many menu voices, so desktop menu will be too busy at one point.
        Thanks in advance!

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear @GAP

          Using Lay Theme's built in Burger menu for all screens is only possible by setting/using the Mobile Layout for all screens (no desktop layout). This removes the ability to style differently between devices. Burger Menu's are relatively easy to custom code if you wish to use mobile, tablet and desktop layouts.

          https://laytheme.com/documentation.html#custom-css-styling

          https://www.w3schools.com/howto/howto_js_mobile_navbar.asp


          Best wishes ✨
          Richard
          1 Reply Last reply
          0
          • G Offline
            G Offline
            GAP
            wrote on last edited by
            #5

            Dear @Richard,
            would be great to have that possibility... on https://www.thyself.agency/ I need to insert way more menu voices... Having a Burger menu would solve this problem... Otherwise the only option is to make the font smaller? That's the worst option... will ruin the design....

            1 Reply Last reply
            0
            • RichardR Offline
              RichardR Offline
              Richard
              Global Moderator
              wrote on last edited by Richard
              #6

              Dear @GAP

              The Burger menu for all Layouts is in the notes for future discussion. Custom coding or using the Mobile layout is the only way currently. You may also wish to look into "accordions" many users on the forum have integrated them before. This way the menu would open out into many listed menu points.

              https://www.w3schools.com/howto/howto_js_accordion.asp


              Best wishes
              Richard
              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