[Resolved] Custom Secondary Menu Font Size

Home Forums Support [Resolved] Custom Secondary Menu Font Size

Home Forums Support Custom Secondary Menu Font Size

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #871443
    Ian

    Howdy,

    I used https://generatepress.com/forums/topic/sub-navigation-font-size/ to try and adjust the font size of my secondary menu and haven’t had any luck. I have this bit of code on my site right now and nothing seems to be happening.

    .main-navigation .main-nav ul ul li a {
        font-size: 24px;
    }

    Thanks for your help!

    GP Premium 1.7.8
    #871636
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    .secondary-navigation .main-nav ul ul li a {
        font-size: 24px;
    }
    #871716
    Ian

    That only adjusts the text size for drop down menu text, but not for the menu text itself. The code in the first post did the same for only drop down text on the top menu but not the primary menu itself.

    Thanks for all the help!

    #871753
    Leo
    Staff
    Customer Support

    That’s because the main menu font size is included in the customizer:
    https://docs.generatepress.com/article/typography-overview/

    Let me know if this helps πŸ™‚

    #872003
    Ian

    Thanks for the help!

    I’m trying to adjust the font size for the secondary menu. However, neither of these code options change that. They only change the font size for the drop down portion of the respective menu, but nothing on the secondary menu itself.

    .secondary-navigation .main-nav ul ul li a {
        font-size: 24px;
    }
    .main-navigation .main-nav ul ul li a {
        font-size: 24px;
    }

    I would like the secondary menu to have the same font size as the primary menu. Thanks again for the help!

    #872023
    Leo
    Staff
    Customer Support

    Have you tried adjusting it in the customizer as I suggested?

    Looks like it’s currently set to 13px in Typography > Secondary navigation.

    Shouldn’t need any CSS to adjust the parent menu items.

    Let me know πŸ™‚

    #872059
    Ian

    Wow I accidently never enabled that plugin before.

    Y’all are the best, thanks for all the help and for not calling me a dummy!!

    #872121
    Leo
    Staff
    Customer Support

    Glad I could help πŸ™‚

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