Close menu from Additional Content
-
I have a live chat button in my Additional Content that is triggered by link anchor – #live-chat. Unfortunately the option in Settings “close menu on link” doesn’t pick this up as a link, and the live chat opens behind the menu.
Is there a way to close the menu when this other link is pressed or some other solution?
Thanks
-
Hey there,
Sure, you can add the
#live-chatID to the list of options in the Trigger option as per the docs below:https://responsive.menu/docs/basic-setup/button/#advanced
So in your case the option would be:
#responsive-menu-button, #live-chatHope that helps
Peter
Ah OK that makes sense. I’ve done that, but the menu remains open.
Just to make sure I am clear on my issue: the live chat launcher link is in the Additional Content inside the Responsive Menu. So when custom presses button, the modal pops up behind the Menu overlay. I added the live chat launcher ID to the trigger (as above) (and refreshed etc) but it doesn’t have any effect when clicked.
Link in Additional Content is:
<a href="#live-chat">Live Chat</a>This connects to a modal/jQuery. No errors are thrown in console.
Many thanks for any input.
Hey there,
It should work, please provide your site URL and steps to recreate so I can take a look.
Peter
Its a locally developed site, so can’t share the URL I am afraid.
Hey there,
That’s a shame. I can’t really suggest much else then I’m afraid as that option works for me from within the additional content section.
Maybe some javascript on your site is stopping mine from working on that element. Maybe try a simple html div with a different id in there and see if that works. If it does then you know its something to do with the live chat javascript from allowing it to work.
All the best
Peter
The topic ‘Close menu from Additional Content’ is closed to new replies.