Hello,
.secondary-menu-wrapper .menu li > a {
font-size:12px;
padding-top:5px;
padding-bottom:5px;
}
Regards
Solved11 replies3 participantsUpdated by Rose Tyler
Can you please let me know the css code for reducing the font size and the vertical height of each entry in the Secondary menu. I want to reduce vertical of the menu. Thanks.
Hello,
.secondary-menu-wrapper .menu li > a {
font-size:12px;
padding-top:5px;
padding-bottom:5px;
}
Regards
Thanks. That works great in reducing font size and padding above/below menu title, but how about reducing the vertical height of each Title box itself?
Hello,
Also use this code:
.global-header-center.et-secondary-menu-on .secondary-menu-wrapper .menu > li > a {
padding-top: 10px;
padding-bottom: 10px;
}
Regards
Unfortunately neither of the 2 css code snippets you provided had any affect in reducing the vertical height of the Secondary Menu Title rows. The font size adjustment worked great.
That did it!!
Can you also give me the css code for doing the same thing on the mobile menu? Changing font size and reducing vertical height of the menu title box.
Hello,
.mobile-menu-wrapper .menu > li > a {
line-height: 45px !important;
font-size: 12px;
}
.mobile-menu-wrapper .menu > li .open-child:before {
line-height: 45px;
}
.mobile-menu-wrapper .links li a {
line-height: 45px !important;
}
.mobile-menu-wrapper .mobile-sidebar-widget {
padding-top: 15px;
padding-bottom: 15px;
}
Regards
Thanks. This css code works great in adjusting the main mobile menu BUT if there it does not change anything on the 2nd level menu which remains the original font size and vertical height for each row. Looks like there is some additional coding. Thanks.
Hello,
Change previous code to:
.mobile-menu-wrapper .menu > li > a, .mobile-menu-wrapper .menu > li .sub-menu li a {
line-height: 45px !important;
font-size: 12px;
}
.mobile-menu-wrapper .menu > li .open-child:before, .mobile-menu-wrapper .menu > li .sub-menu .menu-back:before {
line-height: 45px;
}
.mobile-menu-wrapper .links li a {
line-height: 45px !important;
}
.mobile-menu-wrapper .mobile-sidebar-widget {
padding-top: 15px;
padding-bottom: 15px;
}
Regards
Thanks! Your new css changes font size/row height just fine on the mobile menu as requested. Appreciate the help.
Hello,
You’re welcome!
Regards
The issue related to '‘Secondary Menu – Font Size / Row Height’' has been successfully resolved, and the topic is now closed for further responses
Free AI store scan · SalesMax
Paste your store address. SalesMax AI shows which upsell moments are missing. No signup.
Free AI speed test · FlashMax
Paste your site address. FlashMax runs Google Lighthouse for phone and desktop, checks Core Web Vitals and lists what to fix. No signup.
Real EstateElementor
(live demo, opens in a new tab)
Bakery StoreFood & drinks
(live demo, opens in a new tab)
MarketingBusiness
(live demo, opens in a new tab)
Sushi StoreFood & drinks
(live demo, opens in a new tab)
Hipster StoreFashion
(live demo, opens in a new tab)
Web AgencyPortfolio
(live demo, opens in a new tab)
Luxury Jewelry StoreJewellery
(live demo, opens in a new tab)
Medical 02Elementor
(live demo, opens in a new tab)
Niche MarketMarketplace
(live demo, opens in a new tab)
HotelBusiness
(live demo, opens in a new tab)
SchoolBusiness
(live demo, opens in a new tab)
Tea StoreFood & drinks
(live demo, opens in a new tab)
CorporateBusiness
(live demo, opens in a new tab)
Makeup StoreBeauty
(live demo, opens in a new tab)
RestaurantPortfolio
(live demo, opens in a new tab)
Cosmetics StoreBeauty
(live demo, opens in a new tab)