Site logo

Archived topic

hamburger menu beside site title instead of below

9 replies · Started by Gord on September 19, 2018

Viewing posts 1–10 of 10

How to align the hamburger menu so it appears beside the site title instead of below it at mobile sizes? example: similar to Studiopress genesis sample site.

Hi there,

do you have a link to the site so we can provide a fix?

Try this CSS:

@media (max-width: 768px) {
    .inside-header {
        padding-left: 30px;
        padding-right: 30px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .inside-header .main-navigation {
        margin-left: auto;
    }
}

I added the CSS but the hamburger still appears below the site title.

Sorry i made a typo in the code above can you retry that

Hi there,

try:

@media (max-width: 768px) {
    .inside-header {
        padding-left: 20px;
        padding-right: 20px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .inside-header .main-navigation {
        margin-left: auto;
    }
    .site-branding {
        flex: 0 0 75%;
    }
}

Thanks!

You're welcome

This archived topic is closed to new replies.