[Support request] Creating hook for sticky header

Home Forums Support [Support request] Creating hook for sticky header

Home Forums Support Creating hook for sticky header

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2317308
    Gao

    Hi, GP team,

    For this site, americanalloyfab.com, there is a button on the right end of the sticky header.

    And we know in GP Elementor, there is a function called custom hook, but we never use it.

    We thought it may be the solution to add anything in the sticky header as the example site shows.

    Do you have a such solution?

    Thank you.

    #2317328
    David
    Staff
    Customer Support

    Hi there,

    that website is real fancy, and i can’t tell you how to replicate that.

    However, you can use a Block Element – Hook type in Appearance Elements:

    https://docs.generatepress.com/article/block-element-hook/

    In the Hook select box you can choose: menu_bar_items.
    And set the Display Rules > Location to Entire Site or the specific places you want to use.

    Whatever you add to the block element editor will now be displayed after the Menu items , on Desktop, Mobile and Sticky Navigation.

    If required we can use some CSS to remove the item where it is not required.

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