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. Burger menu in desktop website

Burger menu in desktop website

Scheduled Pinned Locked Moved General Discussion
21 Posts 9 Posters 2.2k 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.
  • mariusjopenM Offline
    mariusjopenM Offline
    mariusjopen
    Global Moderator
    wrote on last edited by
    #12

    Dear @heleneleuzinger
    We would not recommend to change the code inside the theme folder. It will get overwritten with the next update. Try to use the CUSTOM CSS and JQUERY section.
    Best!
    Marius

    www.mariusjopen.world

    B 2 Replies Last reply
    0
    • B Offline
      B Offline
      brogr
      wrote on last edited by
      #13

      Hi @heleneleuzinger
      You'd find most of the relevant CSS code in frontend/style_phone.php: look for .mobile-nav and the relevant mobile-menu-style. As I said, this solution isn't ideal, as lay upgrades might make your custom CSS code faulty.
      The more stable approach I'd recommend is to use custom CSS and JS to adjust the appearance and behaviour of the desktop menu itself...
      Best

      1 Reply Last reply
      0
      • mariusjopenM mariusjopen

        Dear @heleneleuzinger
        We would not recommend to change the code inside the theme folder. It will get overwritten with the next update. Try to use the CUSTOM CSS and JQUERY section.
        Best!
        Marius

        B Offline
        B Offline
        brogr
        wrote on last edited by
        #14
        This post is deleted!
        1 Reply Last reply
        0
        • mariusjopenM mariusjopen

          Dear @heleneleuzinger
          We would not recommend to change the code inside the theme folder. It will get overwritten with the next update. Try to use the CUSTOM CSS and JQUERY section.
          Best!
          Marius

          B Offline
          B Offline
          brogr
          wrote on last edited by
          #15

          @mariusjopen That's the idea...

          1 Reply Last reply
          0
          • H Offline
            H Offline
            heleneleuzinger
            wrote on last edited by
            #16

            Thank you very much! I'll try my hand at that :-)

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

              Dear @heleneleuzinger
              Perfect! Glad to hear!
              Many wishes!
              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • U Offline
                U Offline
                umdoistres
                wrote on last edited by
                #18

                Is there any way of doing this now? Or any kind soul would share their work around?

                Thanks :))

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  brogr
                  wrote on last edited by
                  #19

                  Use the following custom CSS and JS to adjust the appearance and behaviour of the desktop menu. You can see it in action on https://quantaviva.ch

                  Custom CSS for Desktop Version:

                  nav.laynav.primary:before {
                      display: block;
                      content: "–––\A–––\A–––";
                      white-space: pre-wrap;
                      line-height: 0.6em;
                      font-weight: 900;
                      cursor: pointer;
                  }
                      nav.laynav.primary.toggled:before {
                          content: "✕";
                          font-size: 1.5em;
                          line-height: 1.15em;
                      }
                  nav.laynav ul {
                      display: none;
                      width: 96vw;
                      background: #fff;
                  }
                  

                  Custom <head> content:

                  <script>
                  jQuery( document ).ready(function( $ ) {
                      $(".laynav.primary").on("click", function(e){
                          $(this).toggleClass("toggled").children("ul").toggle();
                      });
                  });
                  </script>
                  
                  1 Reply Last reply
                  0
                  • RichardR Offline
                    RichardR Offline
                    Richard
                    Global Moderator
                    wrote on last edited by
                    #20

                    Thanks @brogr 👍
                    Screen Shot 2022-03-03 at 5.03.37 PM.png

                    1 Reply Last reply
                    0
                    • U Offline
                      U Offline
                      umdoistres
                      wrote on last edited by
                      #21

                      oh cool - thanks @brogr :))

                      1 Reply Last reply
                      1
                      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