- This topic has 3 replies, 2 voices, and was last updated 4 years ago by
Tom.
-
AuthorPosts
-
March 22, 2019 at 1:40 pm #846952
Ender
Hello, I’m still experimenting and have some difficulties with the navigation and need your advice. I’m already using the beta of the theme.
I use two navigations:
Primary Navigation (green) is pinned (sticky without a plugin)
Secondary Navigation (blue) is above the Primary Navigation.
There are Problems with the Secondary Navigation, if the Window is <1000px.
1. The menu should be on the left and the logo in the middle. (different from desktop mode)
2. When pressing the menu button a overlay fullscreen menu should occur. (off canvas probably only works with primary navigation)
Update:
In a earlier version of the website (https://www.dec…./test1) I had solved the problem with a plugin for the sticky effect for the secondary navigation and some settings in the “Mobile Header”. I don’t know if I’m on the wrong track with the current version.The easiest way would be to select the second navigation directly without a plugin. According to this statement https://generatepress.com/forums/topic/sticky-secondary-menu/page/2/#post-673193 it should be easy. I am a bit confused.
GeneratePress 2.2.2March 22, 2019 at 6:57 pm #847079Tom
Lead DeveloperLead DeveloperHi there,
I’m not sure I fully understand.
Would it be easier if the secondary navigation was sticky instead? If so, what about doing this?:
#secondary-navigation { position: sticky; top: 0; }
It might be worth exploring a filter we can add to GPP 1.8 which allows us to set the secondary navigation as the “sticky navigation”. I’ll look into that ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 23, 2019 at 3:31 am #847290Ender
Tom, you’re a genius!
(I make some modifications for Safari)
#secondary-navigation { position: -webkit-sticky; /* Safari */ position: sticky; top: 0; }
And a filter would be really cool thing. Many thanks. I start today to use the new beta. I would inform you when I see need for improvement.
March 23, 2019 at 8:07 am #847548Tom
Lead DeveloperLead DeveloperThank you! ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.