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. Update has caused Sub Menu problems

Update has caused Sub Menu problems

Scheduled Pinned Locked Moved Bug Reports
3 Posts 2 Posters 79 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.
  • DMBD Offline
    DMBD Offline
    DMB
    wrote on last edited by
    #1

    Hi there!

    I have had sub-menus working on a site I built for an artist for years now, but since the update they are broken. I see there are now options in the 'Customiser' for sub menus but the only options are to show the sub menu items on either hover or click – what about people (such as myself) who want them visible at all times? Would be quite simple to add that option in on the next update no?

    I added a simple line of CSS to force the sub menu to show, but now it doesnt properly hide my menu when I scroll down, as I use the 'hide menu on scroll' function... Argh.

    Could you help me fix this please? It's probably just a simple line of code to force the menu to be hidden further up when in its 'hidden' state but I cant figure out how to target it.

    The site is:
    https://www.hannahcollins.net/current-projects

    You will see the problem if you scroll down – the menu is now not fully hidden.

    Thank you in advance.

    Best Wishes,
    Duncan

    DMBD 1 Reply Last reply
    0
    • DMBD DMB

      Hi there!

      I have had sub-menus working on a site I built for an artist for years now, but since the update they are broken. I see there are now options in the 'Customiser' for sub menus but the only options are to show the sub menu items on either hover or click – what about people (such as myself) who want them visible at all times? Would be quite simple to add that option in on the next update no?

      I added a simple line of CSS to force the sub menu to show, but now it doesnt properly hide my menu when I scroll down, as I use the 'hide menu on scroll' function... Argh.

      Could you help me fix this please? It's probably just a simple line of code to force the menu to be hidden further up when in its 'hidden' state but I cant figure out how to target it.

      The site is:
      https://www.hannahcollins.net/current-projects

      You will see the problem if you scroll down – the menu is now not fully hidden.

      Thank you in advance.

      Best Wishes,
      Duncan

      DMBD Offline
      DMBD Offline
      DMB
      wrote on last edited by
      #2

      In addition to this, it is also causing the active link in the sub-menu to be shown on two headings which is very confusing as well.

      For example, here I am on the page 'Installation Views' but it is also highlighting 'Current Projects' – this never used to happen before

      Screen Shot 2021-10-31 at 21.42.53.png

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

        Dear Duncan

        @DMB

        "what about people (such as myself) who want them visible at all times?, Would be quite simple to add that option in on the next update no?"

        Good point, I've added this thread to the development notes ✅


        I'm unsure of your exact setup and what is being applied to the sub-menu via Lay Theme vs your own Custom code, however the main thing i see is that when the class 'hidden' is added to the Menu on scroll its pushed up but not enough ( only 36px )

        Screen Shot 2021-11-01 at 11.02.44 AM.png

        It may not be the cleanest solution but the most efficient.

        nav.laynav.primary.hidden {
            top: -70px !important;
        }
        

        The menu is out of view completely now, sadly the !important is needed to override the CSS that is initially passed by hidden being added, but apart from that its good. When you have more time, finding out a cleaner way to correct this may be a good idea 🌝

        As for the second issue we have current-menu-parent also getting highlighted in addition to current-menu-item (getting the following blue added):

        nav.laynav .current-menu-parent>a {
            color: #1100ff;
        }
        

        The colour is defined in Customizer ▸ Menu Style
        Menu Point Active. But if you want no highlight then set the desired colour e.g:

        nav.laynav .current-menu-parent>a {
            color: black;
        }
        

        Hope this helps Duncan let me know how you go! 💥
        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