Site logo

[Resolved] Primary menu shows after you close off canvas panel

Home Forums Support [Resolved] Primary menu shows after you close off canvas panel

Home Forums Support Primary menu shows after you close off canvas panel

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #2534753
    melonbird

    Your off canvas panel overview doc has instructions for how to make the off canvas panel work only on desktop. I want it to work only on mobile. So I chose that setting, and set the menu I want on both to show up in both “primary” (desktop) and off panel (mobile).

    It looks perfect at first. But when I close the mobile menu, the primary menu displays below the site logo. The seemingly obvious solution is to make an empty menu, like your instructions say, and set it to the Primary slot. But then my desktop menu is just a hamburger.

    Maybe I’m missing something obvious, but how can I have a menu across the top of my desktop in the usual way, but an off panel canvas behind the hamburger for the mobile views?

    #2534768
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the page in question?

    You can use the private information field:
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    Let me know 🙂

    #2534786
    melonbird

    Yes, linked in the private info area.

    #2534791
    Leo
    Staff
    Customer Support

    Hmm never seen this issue before.

    Any chance you can disable all plugins and custom functions except GP Premium and GenerateBlocks to eliminate conflicts from other plugins first?

    Make sure to activate the parent theme if you are using a child theme as well.

    Let me know 🙂

    #2534793
    melonbird

    Done!

    #2534821
    Leo
    Staff
    Customer Support

    Hmm strange.

    Can you provide the dashboard access for us to take a look?

    #2534828
    Leo
    Staff
    Customer Support

    Actually, can you remove your custom CSS to test first?

    #2534870
    melonbird

    I removed CSS and it’s working now. Hmm. Sure, if you send me an email I’ll create a user account for you, if you want. I’ll put my email in the private info box.

    #2534889
    melonbird

    Ok, I found the errant piece of CSS in the customizer. I’ve replaced the rest of the custom CSS and turned the plugins back on and it’s working.

    This was the code. I’m not sure what it was supposed to do or why I added it. Most of what I’ve added was GP related and found in the forums here, but removing it doesn’t seem to be hurting anything.

    Thanks for your help! Now I’ve learned another DIY troubleshooting step. 🙂

    @media(max-width: 768px) {
        .mobile-menu-open .main-nav>ul {
            display: flex !important;
        }
    
        .main-nav>ul>li.menu-icon {
            flex: 0 1 60px;
        }
    }
    #2535719
    melonbird

    One last problem. Can you tell me why my social icons at the bottom of the off-canvas panel are so tiny? I’m using the included Gutenberg block and now matter what I change the size setting to in it the block, it still looks the same size in the off-canvas panel.

    #2535826
    David
    Staff
    Customer Support

    Hi there,

    the Social Links don’t have any CSS to set their font size, so they inherit from the main nav.

    Add this CSS to change them:

    .slideout-widget .wp-block-social-links.is-style-logos-only .wp-social-link a {
        font-size: 20px;
    }
    #2536670
    melonbird

    That had no effect. I’m using the overlay version, if that makes a difference.

    ETA: I take it back. It worked on one site, but not another. Hmm.

    #2537142
    melonbird

    Okay, I added this to the site that wasn’t working:

    .wp-block-social-links .wp-social-link svg {
      width: 2em;
      height: 2em;
    }
    

    And now it looks good to me. I don’t know why this one site always seems to need more CSS than my others when they’re all pretty similarly styled lol.

    #2537325
    Leo
    Staff
    Customer Support

    An alternative way without using CSS would be to use the buttons block with icon from GB:
    https://docs.generateblocks.com/article/buttons-overview/

    Then you should be able to use the block settings to customize them.

    #2538086
    melonbird

    Oooh, I like that! Thank you.

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