Archived topic
Sticky header menu with Elementor
3 replies · Started by kerawelt on March 22, 2018
Hello Support,
I'm using both GP-Premium end Elementor and I would like to have a sticky menu.
In the Elementor documentation they say,
"Simply save the menu as an Elementor template, and embed the shortcode in the header hook. Then, use the sticky feature to get the effect you want."
How to Set a Sticky Menu With Elementor
What puzzles me is that here
GP Hooks
They mention a "generate_inside_navigation" hook I don't see in the list of GP-Premium's hooks in my installation.
Now on one YT Tutorial they give that snippet to be added through "Code Snippets" plugin.
add_action( 'generate_inside_navigation','db_add_shortcode' );
function db_add_shortcode() {
echo do_shortcode('[elementor-template id="XXXX"]');
}
Would that be a solution to get my sticky header ?
Many thanks in advance for your support.
Hi there,
Hmm I'm not sure if generate_inside_navigation if the right one to use. Did you try it yet?
Hi, No I didn't try it yet... I'm a newbie in WP. So I preferred to ask before trying anything.
Any suggestion for a bette way ?
Many thanks !
Never hurt to try :)
I'm not quite sure what the content is supposed to look like so hard to provide a suggestion.
But if it's an entire header and navigation it would probably be the before header or before header content hook:
https://docs.generatepress.com/article/hooks-overview/
http://demo.generatepress.com/hook-locations/
Perhaps Elementor would have a better idea how to insert their content.