Site logo

Archived topic

Centered hamburger menu + Logo in mobile view

5 replies · Started by Henk on May 26, 2021

Viewing posts 1–6 of 6

Hello,

For one of my projects I am using the 'Search' theme from the site library. In the mobile view, the logo is on the left, and the hamburger menu on the right. I want to change this to: Logo in the middle and below that the hamburger menu, also in the middle. How can I do this?

Hi there,

Try this CSS:

@media (max-width: 992px) {
    body .has-inline-mobile-toggle .inside-header {
        flex-direction: column;
    }
    body .has-inline-mobile-toggle .mobile-menu-control-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

Hi Leo,

Thanks for your reply.

The above css does not work. The logo is still on the left and the hamburger menu still on the right.

Hi Henk,

To be sure which CSS selector to use to get the best results, can you link us to the site in question so we can inspect?

You can use the private information text field to provide the details.

I already resolved this problem.

Thanks!

Thanks for letting us know. Glad you got it sorted. :)

This archived topic is closed to new replies.