[Resolved] Site title align with the primary menu text

Home Forums Support [Resolved] Site title align with the primary menu text

Home Forums Support Site title align with the primary menu text

Viewing 15 posts - 16 through 30 (of 33 total)
  • Author
    Posts
  • #312841
    Michael Mancini

    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

    #312851
    Leo
    Staff
    Customer Support

    Setting the sticky navigation height is on the road map.

    For now this should work: https://generatepress.com/forums/topic/change-height-primary-menu-when-sticky/#post-175830

    #313579
    Michael Mancini

    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

    #313581
    Leo
    Staff
    Customer Support

    Can you try the adjusted code here? https://generatepress.com/forums/topic/site-title-align-with-the-primary-menu-text/#post-312451

    Please replace everything as I made a syntax error before. Thanks!

    #313583
    Michael Mancini

    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

    #313597
    Leo
    Staff
    Customer Support

    Title looks centered from my phone?
    https://s28.postimg.org/u8fdvl0hp/IMG_5476.png

    #313636
    Michael Mancini

    Try scrolling up.

    Michael

    #313637
    Leo
    Staff
    Customer Support

    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;
        }
    }
    #313638
    Michael Mancini

    Didn’t work.

    #313640
    Leo
    Staff
    Customer Support

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

    #313641
    Michael Mancini

    Nice!
    Michael

    #313643
    Leo
    Staff
    Customer Support
    #313644
    Michael Mancini

    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

    #313660
    Leo
    Staff
    Customer Support

    I think so. Give it a shot.

    If not then this post gives you both method:
    https://generatepress.com/forums/topic/site-title-align-with-the-primary-menu-text/#post-309439

    #330758
    Michael Mancini

    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

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