Archived topic
Custom Secondary Menu Font Size
7 replies · Started by Ian on April 17, 2019
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!
Hi there,
try this CSS:
.secondary-navigation .main-nav ul ul li a {
font-size: 24px;
}
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!
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 :)
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!
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 :)
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!!
Glad I could help :)