[Support request] Sticky header menu with Elementor

Home Forums Support [Support request] Sticky header menu with Elementor

Home Forums Support Sticky header menu with Elementor

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #526055
    kerawelt

    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.

    #526483
    Leo
    Staff
    Customer Support

    Hi there,

    Hmm I’m not sure if generate_inside_navigation if the right one to use. Did you try it yet?

    #526529
    kerawelt

    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 !

    #527034
    Leo
    Staff
    Customer Support

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.