- This topic has 8 replies, 2 voices, and was last updated 4 months, 2 weeks ago by
David.
-
AuthorPosts
-
October 31, 2022 at 5:11 am #2395063
Jacob
I can’t manage sticky navigation after header
I want the main menu to remain generatepress
header is built in elementor
What I did is:
I built the header in Elementor and saved it as a template
After that I copied the short code
And I put it in Hook
In the settings I put Hook
wp_head
Execute Shortcodes
So far, it seems to me that I did the right thing..
Both the menu and the header are sticky
Only when scrolling down, the menu appears above the header instead of below
Many thanks to the helpers to fix itOctober 31, 2022 at 6:30 am #2395150David
StaffCustomer SupportHi there,
can you share a link to where i can see this ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 31, 2022 at 6:35 am #2395156Jacob
.
October 31, 2022 at 6:42 am #2395170David
StaffCustomer SupportAre you wanting the elementor header to be sticky too ?
As that causes a problem.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 31, 2022 at 6:53 am #2395184Jacob
Yes they are both sticky
But the menu will be under the headerOctober 31, 2022 at 7:05 am #2395196David
StaffCustomer SupportThe problem with this: if you reduce the width of your browser. You will see that your Elementor header resizes and the height changes. Which means the position of the sticky navigation would need to change, and for that i do not have a soluton as it would require Javascript to recalc it – which isn’t good.
You may want to reconsider the sticky header, as this is another issue:
That image is from a screen preview taken from one of the most common size laptop screens ( 1366 x 768px ) – and that header and nav is taking up around 1/3rd of the viewport… and that without any Operating System UI in there. It doesn’t leave a lot of screen space for those users.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 31, 2022 at 7:22 am #2395221Jacob
I can remove the generatepress menu and use Elementor as the menu
Which I don’t want to be
I want to stick with the generatepress menu
Regarding mobiles and tablets, this is no longer a problem because it will be different from the desktopOctober 31, 2022 at 7:27 am #2395236Jacob
If it requires me to work on it longer
So it’s a waste of time. Really maybe to build the menu in Elementor and that’s itOctober 31, 2022 at 7:55 am #2395564David
StaffCustomer SupportIf you need to use Elementor for the header, then i would suggest you including the Navigation within Elementor.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.