[Support request] How can I use Navigation as Header EXCEPT on the home page?

Home Forums Support [Support request] How can I use Navigation as Header EXCEPT on the home page?

Home Forums Support How can I use Navigation as Header EXCEPT on the home page?

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #1944137
    David
    Staff
    Customer Support

    It might be best to rewind.
    The Navigation as Header option is not as valid today since we updated the theme in 3.0. Its real benefit is if you’re using the Sticky Navigation as well – is that a requirement?

    #1944202
    Salim

    I really appreciate your time, David.

    Ok so I rewound a bit and will outline where I am now:

    I don’t need a sticky, it’s currently disabled.

    1. I have been able to get the primary navigation to show on the desktop front page without the logo. The primary navigation on the front page I set up as a different “header” element and only shows up when it’s above the header, not if I select float right. Can I have it above the header AND to the right? That’s the only issue I have left to address. Having it as float right makes it disappear, even though primary navigation isn’t linked to the header anymore, it doesn’t let me have it float right when disabled on the “edit page” setting in the layouts section.

    2. I have the mobile header enabled, and the logo still shows on it on the front page. Now I’ve been able to get what I needed on the mobile header by using the header element and having a 1 pixel image as the mobile logo. So that’s great.

    Looks like I’m almost there ๐Ÿ™‚

    #1944233
    David
    Staff
    Customer Support

    Ok thats good ๐Ÿ™‚

    Just to be clear on #1.
    I currently see the Navigation top aligned left.
    Below that is your home page logo which is aligned center.

    Do you simply want to align the navigation to the left so it remains above the logo?
    Or do you want it floated to the right of the logo?

    #1944236
    Salim

    Above the header on the right is fine, for now.

    #1944261
    David
    Staff
    Customer Support

    Try this CSS:

    .home #site-navigation .inside-navigation {
        justify-content: flex-end;
    }
    #1944355
    Salim

    Fantastic! It works very nicely, thanks.

    I think the final thing is that in the mobile menu the menu items are aligned on the left, rather than the right. I tried changing dropdown direction in the customiser but haven’t had luck.

    #1945270
    David
    Staff
    Customer Support

    This CSS to align them right:

    @media(max-width: 768px) {
        .main-navigation.toggled .main-nav li {
            text-align: right;
        }
    }

    Or this CSS if you want to align them right and flip the toggle to the right. Although its more accessible if you dont.

    @media(max-width: 768px) {
        .main-navigation.toggled .main-nav li {
            text-align: right;
        }
    
        .main-navigation.toggled .main-nav li.menu-item-has-children a {
            display: flex;
            flex-direction: row-reverse;
            padding-right: 20px;
        }
    }

    Other alternative is to use the Off Canvas Panel on mobile set to Open from Right, this will align the Menu Drop Down to the right ( not the text )

    #1946154
    Salim

    You’re my hero! Thanks for your help and patience. You’ve been brilliant. Really appreciate it.

    #1946783
    David
    Staff
    Customer Support

    Glad to be of help!

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