Open Responsive Menu via a link or callback action?

Home Forums Pro Support Open Responsive Menu via a link or callback action?

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

    Hi Peter,

    on my landingpage I use a slider with text – and RMP as desktop menu and on tablet/mobile the Hamburger button. It is possible to add links and “callback actions” to the slider’s text. I would love to give visitors the opportunity to touch/click this text – and as result open the Responsive (side) Menu. However, I don’t find a hook in RMP to use as “opener”.
    Maybe my thinking here is totally off.
    Maybe you can give some hints?
    Thank you and
    Best, Chris

    #68498
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Chris,

    You can use any class name as a trigger as per the docs below:

    https://responsive.menu/docs/basic-setup/button/#advanced

    Just give whichever items you want to trigger the menu opening/closing the same class name and add the class to the option above and you’re good to go.

    All the best

    Peter

    #68497

    Thank you, Peter, for your fast reply.
    I’m not quite sure how to achieve this, however, I try to figure out the technical steps first and come back if I don’t succeed.
    Trying to learn some of the basics 🙂
    Best, Chris

    #68496
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Chris,

    For example, all you need to do is add the below links with the specific class open-menu:

    <a href="example.com" class="open-menu">Text</a>

    And then add this class to the Trigger list such as below:

    #responsive-menu-pro-button .open-menu

    That should be all you need to do.

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Open Responsive Menu via a link or callback action?’ is closed to new replies.