Possible to insert custom HTML or Javascript? | Community
Skip to main content

Possible to insert custom HTML or Javascript?

  • March 23, 2023
  • 3 replies
  • 0 views

K27

I saw that there is the ability to edit theme code. However, whenever I insert my custom javascript or HTML it doesn't seem to work. For context, the code I want to insert is for a chatbot and a section of the code is as follows:

<widgetbot server="xxx" channel="xxx" shard="https://emerald.widgetbot.io" width="800" height="600" ></widgetbot> <script src="https://cdn.jsdelivr.net/npm/@widgetbot/html-embed"></script>

Any idea how to fix this please?

Thanks.

3 replies

Pulkit12
  • March 23, 2023

Hi K

You need to add the targeted code inside the document_head.hbs file.

 

Thank You 

Pulkit

Team Diziana


K27
  • Author
  • March 23, 2023

@pulkit12 Thanks. I tried that and inserted it like this.

What ended up happening was that our entire zendesk page could not load (shows a blank screen). Any idea on how to fix this?


Pulkit12
  • March 23, 2023

Hi K

Is that code currently placed on your live instance so that I can go through it was causing the issue and let you know how to resolve it 

 

Thanks

Pulkit

Team Diziana