- This topic has 11 replies, 4 voices, and was last updated 1 year, 6 months ago by
Ying.
-
AuthorPosts
-
January 6, 2021 at 1:34 am #1607580
fabiosilva
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 #1607733David
StaffCustomer 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
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 6, 2021 at 4:12 am #1607773fabiosilva
Thank 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 #1607868David
StaffCustomer SupportYou would need to adjust the
top: 0;
value e.gtop: 10px;
will move it 10px down the page.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 17, 2021 at 11:29 am #1622696fabiosilva
Hi,
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 #1622900Leo
StaffCustomer SupportWe’ve actually updated the method recently.
Can you try the new method here?
https://docs.generatepress.com/article/centering-logo-navigation/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 17, 2021 at 11:20 pm #1623044fabiosilva
Hi, 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 #1623811David
StaffCustomer 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 18, 2021 at 8:39 am #1623827fabiosilva
Yes, 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 #1623944Ying
StaffCustomer 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 #1623994fabiosilva
Thank you, Ying! π
January 18, 2021 at 11:13 am #1624068Ying
StaffCustomer SupportNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.