I want to add a custom item to my main menu for booking. It should work with Javascript. I tried a few suggestions but it doesn’t work. I want the visitors to run this script as they click “Book Now” on the menu.

Here is the code they gave to me:

<style type='text/css'>@import url(http://app.hotelrunner.com/assets/widgets.booknow.css); </style>
<script async='true' src='http://app.hotelrunner.com/assets/widgets.booknow.js'></script>
<script type='text/javascript' async='true'>var hr={ key:'XXXXXXXX', host:'//hotel-name.hotelrunner.com', text:'booknow', align:'Left', valign:'Top', background_color:'#ffffff', locale:'en' };</script>

Here there is a HTML version from a different one, I need to add “Reservation” button work like that to my WP Menu:


What should I do to make this work on the WP page?

Thank you so much in advance.

Read more here: How to make JS work on WordPress Menu?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: