- This topic has 11 replies, 4 voices, and was last updated 3 years, 3 months ago by Ying.
-
AuthorPosts
-
January 6, 2021 at 1:34 am #1607580fabiosilva
Hi,
Firstly, Happy New Year! π
I’m trying to create a menu like this to work only on desktop:. For mobile, I will prefer de Generatepress standards:
https://i.ibb.co/7NNFJb7/MENU.jpgI tried to follow this tutorial, setp by step:
https://docs.generatepress.com/article/centering-logo-navigation/But, the result has:
https://i.ibb.co/z6L02Jk/real.jpgAny simple way to make this?
Basically, I want to place the logo in the center, and center the menus in the respective columns.
The cart could be aligned to the right (by default)Thank you very much for your help
January 6, 2021 at 3:37 am #1607733DavidStaffCustomer SupportHi there,
Couple of things:
1. Add this CSS to fix the menu spacing:
.main-nav { flex: 1; }
2. Edit this part of the center logo CSS, and include the extra line i have commented below:
.site-branding, .site-logo { position: absolute; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); z-index: 200; top: 0; /* Add this line */ }
This will fix the logo issue on the Mobile Header when the nav is opened
January 6, 2021 at 4:12 am #1607773fabiosilvaThank you, David.
I think it solved.
How can I make the logo not ignore the top and bottom header paddings?January 6, 2021 at 6:07 am #1607868DavidStaffCustomer SupportYou would need to adjust the
top: 0;
value e.gtop: 10px;
will move it 10px down the page.January 17, 2021 at 11:29 am #1622696fabiosilvaHi,
This solution for centered logo, on desktop, not work’s very well with fixed navigation.
Any way to make fixed navitagion ignore centered logo?
Thank you.
January 17, 2021 at 7:16 pm #1622900LeoStaffCustomer SupportWe’ve actually updated the method recently.
Can you try the new method here?
https://docs.generatepress.com/article/centering-logo-navigation/January 17, 2021 at 11:20 pm #1623044fabiosilvaHi, Leo. Yes, work better.
But my problem keeps.So, now, fixed menu works better, but the transition between fixed and static menu, is not fine. :-S
Can you check my loom video?
Thank you, Leo.
January 18, 2021 at 8:28 am #1623811DavidStaffCustomer SupportHi there,
theres no simple fix for that ( Although i rather like the effect π ) when using the Site Header and the Sticky Navigation. Instead you would want to use the Navigation as Header Option in Customizer > Layout > Header, as then there will be only one logo to display.
January 18, 2021 at 8:39 am #1623827fabiosilvaYes, you are right! π Perhaps it is not so problematic.
What I don’t like is the bottom fixed menu shadow, which is not doing the pass very well (between fixed menu and header).
January 18, 2021 at 9:59 am #1623944YingStaffCustomer SupportHi Fabiosilva,
Try this CSS to remove the box shadow when scrolling up:
#sticky-navigation.sticky-nav-scrolling-up { box-shadow: none; }
Let me know π
January 18, 2021 at 10:29 am #1623994fabiosilvaThank you, Ying! π
January 18, 2021 at 11:13 am #1624068YingStaffCustomer SupportNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.