How to add custom link with JS on header menu under dropdown?
-
Hi
I am trying to add an html/JS button in the header menu under one of the dropdowns but whenever I click on the relevant link, it just refreshes the home page instead of opening the pop up it’s supposed to.
I want to add this within the dropdown as indicated in the image attached.
Can’t I use the WoodMart header builder on Basel?
I would appreciate your help!
Thanks
Attachments:
You must be
logged in to view attached files.
Hello,
You just add a custom link and insert your URL inside, then you need to add two custom links as sub-menu items to this first custom link. You will get your custom links with the drop-down without any additional JS. Then if you need help, contact I will help to customize the styles.
Check Creating Multi-level Menus here https://codex.wordpress.org/WordPress_Menu_User_Guide
Best Regards
Hi Elise
Thank you for the prompt response.
Sorry I should have said that the code we have comes from a third party and it’s the pop up of their widget that we wish to include on our site, that’s why we need to input the JS somewhere.
Thanks
Sorry I am trying to copy and paste the entire code but it won’t allow me.
Hello,
What should happen when a user clicks ORDER NOW?
Best Regards