Hi all. Our security team is found that knowledge base is using old version of jquery
we tried to update it with Accounts Dashboard | HubSpot
but its not helping, could you please tell me how I can do this?
Hi @VShlapak! Welcome to the Community-- happy to have you here ![]()
This is a great question for our Developer forum so I have moved this thread to get more traction. Could you explain what about the article is not helping? Are there any specific things we can clarify? I’d suggest providing more context about your end goal, as that might give our community members more to work with. ![]()
Best,
Kennedy
Hey @VShlapak,
this doc file applies to themes but since the knowledge base is currently not theme related but a standalone feature, this documentation won’t have an effect on it.
As far as I know, the knowledge base doesn’t rely on jQuery - therefore I’d (double/tripple) check if your theme requires it. If not, disable it as a whole. (My assumption: If the setup is older than 3-4 years, jQuery is most likely gonna be required). But feel free to post a link to the page here or via DM.
If it is required, you could disable it in the settings and implement a working version on theme-theme or on domain-level only.
By setting it on theme-level, it would be getting loaded if a page, which is based on the theme, is requested/opened. Setting it to domain-level would load the jQuery version if somebody navigates through the domain, but not subdomain.
To set it on theme-level:
Locate the theme in the design-manager.
If you’re working with themes(the theme files are mostly written in Hubl, HTML, CSS, JS…), create a new JavaScript file(I recommend to create it in the js folder if your theme has one;otherwise you can create one), locate the base.html(most likely in the templates folder; can have a different name) and put a
<link src="PATH-TO-JQUERY">
inside the -tag. Save; done.
If you’re working with the old template-packs(the theme files are like a drag&drop editor), it depends on the template-pack. Some had something like a global module like a “global footer”, so you had to edit the module and add the file in the code or in via the right sidebar. Some had different approaches that I can’t remember, since I haven’t worked with template-packs for years(because they’re outdated). But in the end it’s basically the same - get the jQuery version into the template files.
If you decide to work with domain-level jQuery,
you can navigate to Settings(gear icon in top right corner → Content → Pages → Templates), select the domain your website and everything that requires jQuery is running on, and put a
<link src="PATH-TO-JQUERY">
into the Header HTML section.
best,
Anton
Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges.

