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. Mobile Menu in four corners of screen

Mobile Menu in four corners of screen

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 154 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.
  • M Offline
    M Offline
    Mariannep
    wrote on last edited by
    #1

    Hello !
    I am currently working on a website where the 4 big "categories" are accessible through 4 buttons on the corners of the browser page :

    http://gautyqi.cluster030.hosting.ovh.net/

    In the mobile version, I would like to keep these buttons in the four corners - and not have them in a hamburger menu.

    In Customize > Mobile > Mobile Menu, I selected the "Desktop menu style" to have the four buttons visible.

    My problem is that I dont know how to position these elements to have them stay each in their corner. Right now, as you can see, I have managed to put them in the general area where they should be by "pushing them" around with margins... but it's not really working.

    I looked at leberg.com because they have the exact menu that I'm trying to make. It seems that they put the top buttons in a div called "navbar-mobile-top" and the bottom buttons in a div called "navbar-mobile-bottom". I wanted to try that, but I'm not sure how to implement these HTML elements in the code.

    Did anyone stumble upon the same question? What would be the best way to do this? Would it be possible to maybe... delete the menu specifications in the mobile CSS to have the desktop menu by default?

    Thanks in advance !
    Marianne

    M 1 Reply Last reply
    0
    • M Mariannep

      Hello !
      I am currently working on a website where the 4 big "categories" are accessible through 4 buttons on the corners of the browser page :

      http://gautyqi.cluster030.hosting.ovh.net/

      In the mobile version, I would like to keep these buttons in the four corners - and not have them in a hamburger menu.

      In Customize > Mobile > Mobile Menu, I selected the "Desktop menu style" to have the four buttons visible.

      My problem is that I dont know how to position these elements to have them stay each in their corner. Right now, as you can see, I have managed to put them in the general area where they should be by "pushing them" around with margins... but it's not really working.

      I looked at leberg.com because they have the exact menu that I'm trying to make. It seems that they put the top buttons in a div called "navbar-mobile-top" and the bottom buttons in a div called "navbar-mobile-bottom". I wanted to try that, but I'm not sure how to implement these HTML elements in the code.

      Did anyone stumble upon the same question? What would be the best way to do this? Would it be possible to maybe... delete the menu specifications in the mobile CSS to have the desktop menu by default?

      Thanks in advance !
      Marianne

      M Offline
      M Offline
      Mariannep
      wrote on last edited by
      #2

      @Mariannep Nevermind, I found the solution !

      I only needed the following CSS :

      /* POSITION MENU 4 CORNERS*/

      /* PROJET*/
      #menu-item-41 {
      position: fixed;
      top: 10px;
      right: 10px;

      }

      /A PROPOS/
      #menu-item-40 {
      position: fixed;
      top: 10px;
      left: 10px;

      }
      

      /CONTACT/
      #menu-item-52 {
      position: fixed;
      bottom: 10px;
      right: 10px;
      }

      /INSPIRATION/
      #menu-item-176 {
      position: fixed;
      bottom: 10px;
      left: 10px;

      }

      I dont know how I didnt find this solution earlier.

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

        Dear @Mariannep

        Thanks for posting this update! :)

        Best
        Richard

        1 Reply Last reply
        0
        • O Offline
          O Offline
          oo
          wrote on last edited by
          #4

          This solution isn’t working anymore, I guess. Are there any suggestions to implement Le Berg style 4 menu items fixed on the corners?

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

            Dear @oo

            You are using this Custom CSS suggestion from @Mariannep?
            If you post a link to your website i can check for a simple fix, the above code should work. But the menu-item # (number) will be different for each website.


            Best
            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
            dafvD
            dafv
            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