[Support request] Add a button at the right of the menu

Home Forums Support [Support request] Add a button at the right of the menu

Home Forums Support Add a button at the right of the menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1072704
    Camille

    Hello

    I want to add a Button (with a link) at the right of my sticky menu so that it remains always accessible. How can I do that?

    Thanks
    Regards,
    Camille

    #1072826
    David
    Staff
    Customer Support

    Hi there,

    you can use the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    Add this to create your button:

    <a class="sticky-button button" href="URL">Button</a>

    Select the inside_navigation hook

    Set the Display Rules to Entire site.

    Then add this CSS:

    .main-navigation:not(.is_stuck) .sticky-button {
        display: none;
    }
    
    #sticky-navigation .inside-navigation {
        display: flex;
    }
    
    .sticky-button {
        order: 5;
    }
    #1073431
    Camille

    Thanks for your answer, can you please take a look at the result? I would like the button to be on the right of the menu (not above like right now)

    thanks a lot

    #1073931
    Leo
    Staff
    Customer Support

    Looks like you’ve decided to use Elementor?

    If that’s the case then you’ll need to check with their support.

    Let me know 🙂

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