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. Bug Reports
  3. submenu overwrites main menu

submenu overwrites main menu

Scheduled Pinned Locked Moved Bug Reports
6 Posts 3 Posters 221 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
    maxmanavi
    wrote on last edited by
    #1

    hey everyone,

    I have problem with a submenu on a site I created for a friend. I followed the instructions in on forum article I found adding css to create a submenu: it worked but now the submenu overwrites the main menu, as you can see here on the Artwork menu subject:

    http://www.martharuess.com

    Can anyone help?

    Thanks a lot in advance, best
    Max

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

      Dear @maxmanavi
      you mentioned that you followed some instructions. Where did you have a look?

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxmanavi
        wrote on last edited by
        #3

        hey marius,

        I followed this post:

        http://laythemeforum.com:4567/topic/161/sub-menus-dropdown-menu/4

        But int he vertical Menu, once the submenu appears it overwrites the next menu item if you know what I mean? I added more space between the menu items, but that's not really a good option. I would love to have the submenu item push down the items below it once you hover, if you know what I mean?

        thank you in advance, best
        Max

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

          Dear @maxmanavi

          I believe i understand what you are trying to achieve, but correct me if i am wrong :)

          When you hover on a main menu title e.g "Artwork"
          You wish that the sub menu: "broken but beautiful" pushes the 3 menus below downwards a bit, so that there is a nice space for the sub menu to sit in?

          Because the Submenu appears only when hovering over "Artwork" you are can use this same 'hover' action to add the distance you wish as well.

          With Custom CSS you can make the Menu "ARTWORK" have a larger spacing when you hover over it, and the normal distance when you are not hovering.

          there is a CUSTOM CSS area provided by lay Theme.

          In the Wordpress menu bar under "LAY OPTIONS"
          you will see CUSTOM CSS & HTML

          There you will be able to add some CSS code to space out your sub-menus when you hover:

          If you are unfamiliar with the basics of CSS in may help you greatly to follow this

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

          Screen Shot 2020-07-14 at 12.43.56 PM.png

          As you can see each menu- "Menu-item" has a number in this case "artwork" can be called as .menu-item-110

          You can add Custom CSS to .menu-item-110 so that when you hover over it -
          a padding-bottom of 10px or 1.5vh gets added to the element.

          when you move away the padding disappears along with the sub-menu.

          
          .menu-item-110:hover {
          
          padding-bottom : 10px;
          
          }
          

          You can apply the same rules to the other menu-items as you wish just by addressing their specific number eg. .menu-item-92 for "OBJECTS"

          It should be noted that their a cleaner ways of coding & addressing menu-item's
          however for your purposes i hope this helps you and provides a simple solution

          Let me know if this was way off what you needed

          Best wishes
          Rich

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maxmanavi
            wrote on last edited by
            #5

            thank you very much Richard, it worked like a charm ;)

            all the best
            max

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

              Dear @maxmanavi

              Awesome!

              Many wishes!
              Rich

              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