• Resolved thomasbeyer

    (@thomasbeyer)


    Hi,
    I use the theme One Page Express and just noticed that the manu bar splits into two rows on smaller screens (Around 1290px and smaller).

    Does anyone know any CSS coding making the font size smaller on smaller screen or reducing the padding.

    If that doesnt work, making it into a mobile menu when no longer fits into a single row is also possible.

    I have tried using Mega Menu, but it didnt work.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You need to consider compromising the logo size otherwise the necessary font size will be 9px.

    Thread Starter thomasbeyer

    (@thomasbeyer)

    @anevins I change the logo to a smaller one, but it didnt make any difference.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I meant before getting into the technical solution, you need to make that choice. Are you okay with that? I think one solution is 100px logo width and 12px font size.

    Thread Starter thomasbeyer

    (@thomasbeyer)

    @anevins Im okay with that, but not sure how to do it!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In the “Additional CSS” section of the dashboard add this:

    
    @media screen and (min-width: 768px) {
        
        .logo_col {
            max-width: 100px;
        }
    
        #drop_mainmenu > li {
            margin: 0 1%;
        }
    
        #drop_mainmenu > li > a {
            font-size: 13px;
        }
    }
    
    @media screen and (min-width: 920px) {
        
        .logo_col {
            max-width: 200px;
        }
    
        #drop_mainmenu > li > a {
            font-size: 14px;
        }
    }
    
    @media screen and (min-width: 1100px) {
        
        .logo_col {
            max-width: 200px;
        }
    
        #drop_mainmenu > li > a {
            font-size: 18px;
        }
    }
    

    https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress

    Thread Starter thomasbeyer

    (@thomasbeyer)

    @anevins that worked. Only thing is that the font size for the menu doesnt change. So it looks very small when looking at a big screen.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Are you sure you copied all my code? You seem to be missing the ‘font-size’ bit here:

    
    ...
    
    @media screen and (min-width: 1100px) {
        ...
    
        #drop_mainmenu > li > a {
            font-size: 18px;
        }
    }
    
    • This reply was modified 6 years, 2 months ago by Andrew Nevins.
    Thread Starter thomasbeyer

    (@thomasbeyer)

    Thats right! It worked now.

    Thanks 😀

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Menu bar on one row’ is closed to new replies.