Site logo

Archived topic

Sticky header menu with Elementor

3 replies · Started by kerawelt on March 22, 2018

Viewing posts 1–4 of 4

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 !

This archived topic is closed to new replies.