[Resolved] Mobile Nav Menu Toggle not working

Home Forums Support [Resolved] Mobile Nav Menu Toggle not working

Home Forums Support Mobile Nav Menu Toggle not working

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #85558
    Tiffany

    I noticed that for my mobile version that if I expand the toggle of a main menu item, the main menu item below it disappears (it doesn’t move down and is instead hidden by the expanded submenu items). My website is:
    http://www.kampuskompass.com

    #85568
    Tom
    Lead Developer
    Lead Developer

    It seems you’re using an old version of GeneratePress – the mobile dropdown behavior has been improved lately.

    It also seems that you’re using some sort of minifying/caching plugin – while these can work great, they can also cause issues.

    Update to the latest version of GP and see if that fixes it – if not, we’ll take a look at some other possible causes πŸ™‚

    Thanks!

    #85985
    Tiffany

    I’m using version 1.2.8, which is the latest available version.
    Just in case, I deleted it and reinstalled it.

    I do have a custom child theme, but there aren’t any functions in functions.php.
    Style.css just fixes the sizes of menu icons and the appearance of the word “Menu” at the top.

    I tried it again after temporarily disabling all my plugins, using an empty style.css for my child theme, purging the cache of my site, and pausing my CDN (Cloudflare). It still didn’t work πŸ™

    #86013
    Tom
    Lead Developer
    Lead Developer

    I just took a look with my screen reduced and on my phone – your menu seems to be functioning perfectly. When I touch the dropdown icon, the sub-menu appears and pushes the below parent items down.

    Let me know if you’re seeing something different.

    #86565
    Tiffany

    The parent items do move down on my screen as well, but the toggle/arrow for the parent disappears if the parent item above it is expanded. For instance, the first 2 parent items with submenus are “Transportation” and “Directory.” When Transportation’s submenu is displayed (the toggle is selected) there are 3 submenu items, but the toggle for Directory has disappeared and will not reappear unless Transportation’s submenu is closed.

    Just in case that was confusing, I’ve added 3 screen caps below:
    1. Unexpanded (everything that has a submenu has a toggle/arrow to show the submenus)
    Unexpanded
    2. Expanded Transportation’s submenu (Directory no longer has an option to show its submenu)
    Expanded submenu of Transportation
    3. The location of Directory’s toggle (Using Chrome’s Inspect Element)
    Directory's toggle is hidden behind submenu items of Transportation

    #86582
    Tom
    Lead Developer
    Lead Developer

    Hi Tiffany,

    Looks like the screen caps never made it?

    Would definitely be good to see πŸ™‚

    #86938
    Tiffany
    #86996
    Tom
    Lead Developer
    Lead Developer

    All of those links gave me an “Access Denied” message.

    #87001
    Tiffany

    Really, really sorry about that. I just started learning how to use Cloudflare and didn’t know that it would block access to my images for other IP addresses. I’ve disabled the setting for that and followed their instructions for allowing access to my images (test-images/hotlink-ok). Tell me if this works.

    1. Unexpanded: http://kampuskompass.com/test-images/hotlink-ok/unexpanded.png
    2. Expanded: http://www.kampuskompass.com/test-images/hotlink-ok/expanded-transportation.png
    3. Toggle’s location: http://www.kampuskompass.com/test-images/hotlink-ok/directory-toggle.png

    #87083
    Tom
    Lead Developer
    Lead Developer

    Ahhh, I see the issue. Nice find! I’ll look into a fix for this ASAP.

    #87086
    Tom
    Lead Developer
    Lead Developer

    Alright here’s the fix (you can remove the below in the next version as it will be fixed).

    Add this to your CSS:

    @media only screen and (max-width: 768px) {
    	.main-nav .sf-menu > li {
    		clear: both;
    	}
    }
    #101433
    Marin Goleminov

    Hi there,

    I’m working on a clients website and also have a problem with the mobile menu: it doesn’t show up. Can You please have a look here?

    http://www.urianek.at/site/

    Regards, Marin

    #101563
    Tom
    Lead Developer
    Lead Developer

    Hi Marin,

    You have this in your child theme style.css file:

    @import url("../generatepress/style.css");

    If you remove it, you should be good to go πŸ™‚

    #102454
    Marin

    Thanks, Tom.

    I thought that was necessary when using child-themes… Anyway, everything looks fine and the mobile menu is working again πŸ™‚

    Regards, Marin

    #102503
    Tom
    Lead Developer
    Lead Developer

    Using @import is generally frowned upon these days – it has performance issues. GP includes the parent theme’s style.css file in a much more efficient way πŸ™‚

Viewing 15 posts - 1 through 15 (of 29 total)
  • You must be logged in to reply to this topic.