Site logo

Archived topic

Site title align with the primary menu text

32 replies · Started by Michael Mancini on April 23, 2017

Viewing posts 16–30 of 33

Hi,

That works except for the padding-top. The big problem for me is when you get the customizer/primary navigation/menu item height set right so that the site title and nav menu line up, when it goes sticky it is way too narrow. A menu item height setting for sticky is needed.

Michael

Hi,

That worked except the site title is not centered and is at the top of the nav bar. Take a look https://audiopassion.net/

Michael

Leo,

OK. That works. Now I see that works great on desktop but if I pick sticky for both the site title still floats left. Is there a way for it to center on mobile.

Thanks,
Michael

Try scrolling up.

Michael

the sticky navigation wasn't activated the last time I tried it.

Try this CSS now:

@media (max-width: 768px) {
    .menu-site-title {
        float: none;
    }
}

Didn't work.

Adjusted the code a bit. Can you give it another shot?

Nice!
Michael

Leo,

That works. Thanks for your help. I can save this as a blueprint and use it when I need to until you guys put it in the customizer. If I use transitions to sticky will I have to adjust the code?

Michael

Hi Guys,

Now that GP Premium has a Menu Item Height adjustment in Layout/Sticky Navigation (cool!) It looks like I have to delete this CSS:

.main-navigation.is_stuck .main-nav ul li a {
line-height: 60px;
}

Is there anything else I need to change within the CSS or code snippet you detailed in this post? Just double checking.

Thanks,
Michael

This archived topic is closed to new replies.