How to add a javascript link to navigation?

maciej_
Tourist
6 0 1

I'm trying to add a line of javascript to enable Help Scout knowledge base as a modal. Here's the code:

<a href="javascript:void(0);" id="beacon" onclick="return HS.beacon.open();">Contact us</a>

Here's the code with javascript (I've already added it to the theme).

https://jsfiddle.net/de2v410p/

How do I add the link (in the navigation, button, or a link in the body)?

Thanks so much!

SofBor
New Member
1 0 0

Having the same issue. Any help?

0 Likes