image for site

Add jQuery Script to Zendesk document_head.hbs

Learn where to add the jQuery script in your Zendesk theme. Use document_head.hbs for efficient integration.

Where should I add the jQuery script in my Zendesk theme?

The jQuery script should be added to the document_head.hbs file in your Zendesk theme. This file renders on all Help Center pages, so you only need to add the script here once. There's no need to duplicate the effort in other templates or files.


More related questions

How do I import or upgrade jQuery in Zendesk Help Center themes?

To import or upgrade jQuery in your Zendesk Help Center themes, you need to follow a few simple steps. First, navigate to Guide and click the Customize design icon in the sidebar. Choose the theme you want to work with and click Customize, then…

What version of jQuery can I use in my Zendesk theme?

You can use any version of jQuery that you prefer in your Zendesk theme. The choice of jQuery version is entirely up to you. Simply visitcode.jquery.comto select the version you want to use and follow the steps to…

Do I need to modify other templates when adding jQuery to Zendesk?

No, you do not need to modify other templates when adding jQuery to your Zendesk theme. By adding the jQuery script to the document_head.hbs file, it will be included on all Help Center pages, eliminating the need for additional modifications.

What is the purpose of the integrity attribute in the jQuery script tag?

The integrity attribute in the jQuery script tag ensures that the resources hosted on the third-party server have not been tampered with. It provides a security measure by allowing browsers to verify the integrity of the file being loaded.

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites