- This topic has 17 replies, 4 voices, and was last updated 2 years, 5 months ago by
Ying.
-
AuthorPosts
-
April 7, 2023 at 9:51 am #2601213
registriran
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
April 7, 2023 at 1:34 pm #2601440Ying
StaffCustomer SupportLet’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.
April 7, 2023 at 2:04 pm #2601482registriran
Mine looks different than what’s described here: https://docs.generatepress.com/article/mobile-header/
Edit: Nevermind, I had to activate the module in GP Premium. It’s done now – the mobile header is on.
April 7, 2023 at 2:30 pm #2601523Ying
StaffCustomer SupportI forgot to ask you to upload a logo for the mobile header, sorry about that.
Let me know when the logo is uploaded.
April 8, 2023 at 4:35 am #2601948registriran
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).
April 8, 2023 at 11:36 am #2602376Ying
StaffCustomer SupportI notice that you are still using the legacy
float
structure, can you go to customizer > general, and switch it toflex
?
https://docs.generatepress.com/article/switching-from-floats-to-flexbox/April 8, 2023 at 12:18 pm #2602409registriran
Ok, did that too.
April 8, 2023 at 12:28 pm #2602417Ying
StaffCustomer SupportGo to customizer > layout > primary navigation, and check if the
Navigation Alignment
is set tocenter
.April 8, 2023 at 2:05 pm #2602497registriran
Thanks, that fixed the desktop top navigation!
April 9, 2023 at 11:11 am #2603250Ying
StaffCustomer SupportNow 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/
April 10, 2023 at 12:55 am #2603680registriran
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.
April 10, 2023 at 1:20 am #2603697Fernando Customer Support
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?
April 10, 2023 at 3:54 am #2603857registriran
Hi, the site I attached was the example I wanted it as. Now attaching both mine and the example one.
April 10, 2023 at 5:23 am #2603960David
StaffCustomer SupportHi 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.
April 10, 2023 at 6:11 am #2604021registriran
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?
-
AuthorPosts
- You must be logged in to reply to this topic.