Site logo

Archived topic

move hamburger menu to the left and display website title in the middle

17 replies · Started by registriran on April 7, 2023

Viewing posts 1–15 of 18

Hello,

How can I move the hamburger menu to the left + display my website's title with a link to the homepage in the middle of the top navigation on mobile?

There's also a weird grey line above the top navigation menu - can we also have that removed?

Finally, will the font of the website title be inherited? I'm using System Stack for performance reasons.

I've attached my website and an example website of what I want.

I tried looking this up in existing threads but it seems there's no general solution to that.

Thanks

Let's handle one question at a time.

1. You have this CSS which hides the logo on mobile, it needs to be removed.

@media (max-width: 768px)
.site-logo {
    display: none;
}
}

2. Go to Customzier> layout > header, and turn on the mobile header option.

Once it's done, we can take another look.

I forgot to ask you to upload a logo for the mobile header, sorry about that.

Let me know when the logo is uploaded.

Ok, done.

Edit: Hm, I just noticed that my desktop top nav menu got pushed to the left for some reason. It was centered (you can take a look at what it looked like in archive.org).

Ok, did that too.

Go to customizer > layout > primary navigation, and check if the Navigation Alignment is set to center.

Thanks, that fixed the desktop top navigation!

Now add this CSS for the mobile header layout:

#mobile-header .menu-toggle {
    position: absolute;
    left: 0;
}
.mobile-header-navigation.has-menu-bar-items .mobile-header-logo {
    margin-left: auto;
}

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

Ok, thank you, but this puts the website's logo in the center and as I explained in my original post I want the website title in there. :)

Could you help with that?

I left an example site of what I want.

Hello there,

Did you remove the logo? I'm not seeing one on your site right now. I'm only seeing the site title.

If you did, can you return it?

Hi, the site I attached was the example I wanted it as. Now attaching both mine and the example one.

Hi there,

the examples site you shared is using just an image for its "logo"

are you wanting to place your logo image behind your site title ?

if so add the logo so i can see the logo and the title and ill will provide some CSS to do that.

Hi,

Maybe it's my English. I want to have the hamburger menu on the left and the site title (not logo, just text) displayed in the middle on mobile view. So the hamburger menu is already on the left thanks to Yinn, now I just want to replace the mobile logo with a site title.

I tried through Layout > Header > switching Branding to "Site title" instead of "logo" but then the site title gets displayed on the left and overlaps with the hamburger menu.

Could you help?

This archived topic is closed to new replies.