Site logo

[Support request] Add secondary menu to off canvas menu

Home Forums Support [Support request] Add secondary menu to off canvas menu

Home Forums Support Add secondary menu to off canvas menu

Viewing 14 posts - 16 through 29 (of 29 total)
  • Author
    Posts
  • #2541569
    Charles

    Sure, it’s https://www.greenfrogmovers.com/

    Charles

    #2541580
    Ying
    Staff
    Customer Support

    Do you mean this gap?
    https://www.screencast.com/t/pnorC6ktr

    If so, it’s the margin-top of the first container, try to remove or reduce the value.

    And looking at your layout, you do NOT need to use a header element to merge the header with content.

    #2541598
    Charles

    Yeah, that’s the gap on mobile devices.

    I’ve removed the margin at the top of that page.

    Could you explain a little more what you mean regarding the header element?

    Thank you
    Charles

    #2541692
    Ying
    Staff
    Customer Support

    This video shows how to merge header with the content, this is what your site is having right now:
    https://youtube.com/watch?v=TP8mgBQTgGg&si=EnSIkaIECMiOmarE

    But according to your site layout, I don’t think you need this setting. If you disable the merge, the container does not need any top margin at all.

    #2541698
    Charles

    Hi Ying,

    Ahh, that’s great. Thanks for pointing that out.

    On another point I’ve used this CSS to change the background colour of a link in the primary nav. But I can’t seem to get it to work on desktop.

    .main-navigation .main-nav ul li.contact-us-nav a {
    background-color: #d45639; color: #ffffff;
    }

    What do I need to change?

    #2541701
    Ying
    Staff
    Customer Support

    I’m not seeing a menu item has the contact-us-nav class, how did you add the class?

    #2541709
    Charles

    I added it with the css class option in the menu settings.

    #2541827
    Ying
    Staff
    Customer Support

    It’s the menu item in the slide-out navigation?

    If so, it’s working:
    https://www.screencast.com/t/alda5j8s1y

    #2542235
    Charles

    I’d like to change it in the menu on desktop as well.

    Charles

    #2543319
    Ying
    Staff
    Customer Support

    Do you mean this one?
    https://docs.generatepress.com/article/block-element-site-header/

    If so, the class is not added.

    #2543553
    Charles

    Hi Ying,

    I removed the site header from elements.

    I’ve added the class to the primary menu now as well. But it doesn’t seem to have changed.

    Charles

    #2544313
    David
    Staff
    Customer Support

    The CSS you added for that menu item is inside an @media query of 1024px. Move the CSS outside of that.

    #2544439
    Charles

    That’s sorted it, thanks David.

    Charles

    #2545106
    David
    Staff
    Customer Support

    Glad we could be of help

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