[Support request] Need the top menu in header widget horizontal

Home Forums Support [Support request] Need the top menu in header widget horizontal

Home Forums Support Need the top menu in header widget horizontal

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #282361
    Bebe

    I need to modify the menu inside the header widget to be horizontal like the top level menu.
    http://hiddenvalleylakegolfclub.com/beta/

    #282465
    Leo
    Staff
    Customer Support

    Hi there,

    Not too sure what you meant? The header widget is currently just a Member Log In link?

    Let me know.

    #282474
    Bebe

    Sorry, it has an additional link that only shows when you’re logged in. I just need them to show side by side rather than underneath.

    #282475
    Bebe

    It’s a menu inside that widget, not just a link.

    #282574
    Tom
    Lead Developer
    Lead Developer

    Give this CSS a shot:

    .header-widget .widget .menu li {
        display: inline-block;
        margin: 0 5px;
    }
    
    .header-widget .widget .menu li ul {
        display: none;
    }
    #1264648
    Martin

    Hi,

    This code works great for desktop but I’d like the menu to stay on two separate lines on mobile. Is that possible?

    Thanks!

    #1264717
    David
    Staff
    Customer Support

    Hi there,

    you can add the Code that Tom provided inside a media query to it only applies to larger devices:

    @media (min-width: 769px) {
        .header-widget .widget .menu li {
            display: inline-block;
            margin: 0 5px;
        }
        
        .header-widget .widget .menu li ul {
            display: none;
        }
    }

    More info on @media:
    https://docs.generatepress.com/article/responsive-display/#responsive-breakpoints

    #1264751
    Martin

    Works a treat thank you!

    Just one more thing – the header widget is appearing above the logo on mobile view.

    Can I re-arrange so the header widget appears below the logo?

    Thanks!

    #1264754
    David
    Staff
    Customer Support

    Try this CSS:

    @media (max-width: 768px) {
        .inside-header {
            display: flex;
            flex-direction: column;
        }
        .site-logo {
            order: -1;
        }
        .nav-float-right .header-widget {
            top: unset;
        }
    }
    #1264761
    Martin

    Thanks this works!

    #1265031
    David
    Staff
    Customer Support

    You’re welcome

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