Secondary Menu – Font Size / Row Height

This topic has 12 replies, 3 voices, and was last updated 7 years, 2 months ago ago by Rose Tyler

  • Avatar: georcarson
    George
    Participant
    January 29, 2017 at 06:04

    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.

    11 Answers
    Avatar: 8theme
    8theme
    Support staff
    January 30, 2017 at 08:40

    Hello,

    .secondary-menu-wrapper .menu li > a {
    	font-size:12px;
      	padding-top:5px;
      	padding-bottom:5px;
    }

    Regards

    Avatar: georcarson
    George
    Participant
    January 30, 2017 at 17:19

    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?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 31, 2017 at 14:47

    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

    Avatar: georcarson
    George
    Participant
    January 31, 2017 at 16:15

    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.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 31, 2017 at 16:24

    Hello,

    Please, add !important http://prntscr.com/e2pss8

    Regards

    Avatar: georcarson
    George
    Participant
    January 31, 2017 at 17:40

    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.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 2, 2017 at 13:13

    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

    Avatar: georcarson
    George
    Participant
    February 2, 2017 at 15:54

    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.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 2, 2017 at 16:24

    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

    Avatar: georcarson
    George
    Participant
    February 2, 2017 at 23:57

    Thanks! Your new css changes font size/row height just fine on the mobile menu as requested. Appreciate the help.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 3, 2017 at 14:17

    Hello,

    You’re welcome!

    Regards

  • Viewing 12 results - 1 through 12 (of 12 total)

The issue related to '‘Secondary Menu – Font Size / Row Height’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.