[Resolved] Possibility to set a Button in “mobile” Sticky header?d

Home Forums Support [Resolved] Possibility to set a Button in “mobile” Sticky header?d

Home Forums Support Possibility to set a Button in “mobile” Sticky header?d

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2331154
    Jenny

    Hello together,

    is there a possibility to set a button in the mobile sticky header?

    Thanks a lot for your help ❤️
    Jenny

    #2331159
    Fernando
    Customer Support

    Hi Jenny,

    To clarify, are you referring to adding a button solely in the Sticky nav?

    #2331164
    Jenny

    Yes :). between the Logo and the Burgermenü.

    #2331172
    Fernando
    Customer Support

    I see. You can try through a Block Element.

    Hook it to inside_navigation.

    Then for your button, add this class: hide-not-sticky

    Lastly, add this CSS:

    nav:not(.is_stuck) .hide-not-sticky {
         display: none;
    }
    #2331188
    Jenny

    No, I am sorry, but that doesn’t work –
    I want to have it here :).

    https://ibb.co/BZYKPXH

    #2331195
    Fernando
    Customer Support

    I see. May I know where it went when you tried it?

    #2331222
    Jenny

    Can you say it in easy words please? My englisch is not very good :).
    So the button it’s still online in the Backend, but not in my frontend.
    Or what do you mean?

    https://ibb.co/bd0xSgW

    Thanks for looking it up again.

    #2331246
    David
    Staff
    Customer Support

    Hi there,

    1. remove the CSS that Fernando provided.
    2. Keep the hide-not-sticky class on the button.
    3. Change the block element hook to: menu_bar_items
    4. Add this CSS:

    
    nav:not(#mobile-header) .hide-not-sticky,
    #mobile-header:not(.is_stuck) .hide-not-sticky {
        display: none;
    }

    It may require some extra CSS to position, let me know.

    #2331282
    Jenny

    David 🙂 thank you, for looking it up.

    but I can’t see the Button mobile – where is my mistake?
    Can you have a look again?

    That would be great 🙂

    #2331290
    David
    Staff
    Customer Support

    Can you select that Button and in Advanced settings, make sure its NOT Hidden on Mobile.

    #2331337
    Jenny

    hm :/ it isn’t hidden.
    I have made you an Screenshot

    https://ibb.co/Sycfd51

    #2331396
    David
    Staff
    Customer Support

    Is the button using a Global Style ? Or was it copied from another button ?

    #2332060
    Jenny

    Thank you David ❤️. I took a new Testbutton & it worked :).

    #2332229
    David
    Staff
    Customer Support

    Awesome – glad to hear that!

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