Home › Forums › Support › Sticky Nav with logo left, menu toggle centered and contact information right
- This topic has 4 replies, 3 voices, and was last updated 3 years, 5 months ago by elusive2k.
April 15, 2019 at 10:13 am #869781Mirko
I have a web project where the designer thinks the header should contain 3 elements: a logo on the left, some contact information on the right and the typical symbol for the slideout menu in the middle. The whole header should only appear when scrolling down and then be sticky.
Ok, sounds easy, but I don´t know how to hook the sticky menu with the fancy transition effect and the slideout menu function. Normally I would create a flexbox container with 3 flex divs, then create a menu and then call it in the header.php with some kind of shortcode, e.g.<?php dynamic_sidebar( ‘mynavi’ ); ?>
, but I don´t know how to insert the GP main navigation.
That´s how it should look in general:
Maybe there´s a hook or anything elese and I´m just too blind to find it in the documentation 🙂
Thanks a lot for your help and best wishes from Germany
MirkoGP Premium 1.7.8April 15, 2019 at 11:44 am #869851LeoStaffCustomer Support
If you are using the GP Premium 1.7.8, the easiest solution would be to use the navigation logo:
Set the navigation alignment to center:
Make it so only the toggle shows:
Then use the inside_navigation hook to add the contact info:
If you want the header to only show on scroll, this solution should work:
Note that we’ve made use navigation as a header an option in the next version of GP Premium which is currently in release candidate already:
Lots of info above. Have a look and let me know if you have any questions 🙂
Adding CSS: http://docs.generatepress.com/article/adding-css/April 16, 2019 at 6:42 am #870426Mirko
thanks a lot for your immediate help! Your suggestion works fine for me, and my designer will be happy 🙂
I really like your great and really fast support – Thumbs up!!!
Best wishes from Germany, and have a nice week
MirkoApril 16, 2019 at 8:41 am #870673LeoStaffCustomer Support
Glad I could help 🙂
Adding CSS: http://docs.generatepress.com/article/adding-css/October 18, 2019 at 7:14 am #1038100elusive2k
This might be useful for some other people: https://generatepress.com/forums/topic/phonenumber-link-with-image-to-right-in-main-navigation-logo-left-menu-centere/
- You must be logged in to reply to this topic.