Archived topic
Custom header
6 replies · Started by Jacob on January 17, 2020
Hello
I wanted to know if the header could be designed.
Inside Elementor. But use the GeneratePress main menu.
And don't use the menu offered by Elementor
Many thanks to the assistants
Hi there,
That's a tough one.. Are you able to add a shortcode inside your Elementor header? If so, what if you do this:
add_shortcode( 'primary-navigation', function() {
ob_start();
generate_navigation_position();
return ob_get_clean();
} );
Then you might be able to use [primary-navigation] inside the header.
Hey Tom
What I want to do is design the logo and top menu
In Elementor.
But Primary Navigation will be GeneratePress.
Once I create a header template in Elementor.
It removes the GeneratePress Primary Navigation.
I want to stay with GeneratePress Primary Navigation
Hi there,
save your Elementor Header as a regular template, then add the shortcode it provides to a GP Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
You can add it to the before_header hook. Make sure you Check: Execute Shortcodes and set your Display Rules.
thanks Tom and David
I just fix this
Glad to hear that