Site logo

Archived topic

About Menu

13 replies · Started by John on July 6, 2019

Viewing posts 1–14 of 14

Hello

Is It possible to set the logo in the middle of off canvas menu and search icon?

Like this website - https://www.thespruce.com/

Thanks

Done,

Please check now.

Follow all the instructions.
Working fine on desktop version. But need some work on mobile version.

Could you check please?

Try adding this:

.main-navigation .mobile-bar-items {
    margin-left: auto;
}

Added,

Could you recheck in mobile version, Is It Okay or need further work?

I'm little confused.

Hi there,

could you flush and disable autoptimize then i can take a look. You can re-enable it once we have adjusted the CSS

Done, You can check now.

So first we need to adjust the position of the logo so edit this CSS:

#mobile-header .site-logo {
    position: absolute;
    left: calc( 50% - 90px); /* 50% from the left - half your image width */
}

And change the 90px to 43px.

Then add this CSS:

@media (max-width: 768px) {
    #mobile-header button.menu-toggle {
        padding-left: 10px;
    }
    .mobile-bar-items .search-item a {
        padding-right: 20px !important;
    }
}

Works Great.

Find one more issue. Please visit any single post. Seems some blank gap between menu and featured image(Only for mobile device). I didn't notice this issue for the homepage.

Try this CSS:

.single-post .page-header {
    display: none;
}

Solved.

Thanks for such great help.

Glad to be of help

This archived topic is closed to new replies.