Site logo

Archived topic

where to add javascript

3 replies · Started by Jim on September 14, 2021

Viewing posts 1–4 of 4

I need to install a "Book Online" Button. Instructions from vendor (zocdoc): I would like to put it in the navigation bar primary menu, if possible. Or a "call to action" button would be ok, too. Where do I put the following javascript code?

JavaScript code

Dupage Family Medicine

<script>(function (d) {var script = d.createElement('script'); script.type = 'text/javascript'; script.async = true; script.src = 'https://link.edgepilot.com/s/5cc8a598/FtBd_AarR0W5NJmBTGptdg?u=https://offsiteschedule.zocdoc.com/plugin/embed%27%3Bvar s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);})(document);</script>

It worked...thank you, thank you, thank you... I followed your documentation links and learned how to use elements. I then created a "menu item" hook and embedded the code. You guys rock!! I am so glad I found GeneratePress as my goto website development platform.

Glad to hear :)

This archived topic is closed to new replies.