# Code snippets for the entire Knowledge Base (KB)

**URL:** <https://community.hubspot.com/t/code-snippets-for-the-entire-knowledge-base-kb/104839>\
**Category:** HubSpot Ideas\
**Tags:** content\
**Created:** [April 15, 2024, 2:30pm UTC](https://community.hubspot.com/t/code-snippets-for-the-entire-knowledge-base-kb/104839 "2024-04-15T14:30:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dani\_Ele](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Dani\_Ele](https://community.hubspot.com/u/Dani_Ele)\
**Post date:** [April 15, 2024, 2:30pm UTC](https://community.hubspot.com/t/code-snippets-for-the-entire-knowledge-base-kb/104839/1 "2024-04-15T14:30:02Z")

</div>

Currently (April 2024), it is possible to add code snippets only to selected KB articles.

It is **not** possible to add the same code to all articles at the same time.

Code added to “all pages” **won’t be applied** to the knowledge base pages.

---

<div class="post-metadata">

**Author:** ![amberbachlani](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/amberbachlani/32/17188_2.png) [@amberbachlani](https://community.hubspot.com/u/amberbachlani)\
**Post date:** [September 26, 2025, 3:26pm UTC](https://community.hubspot.com/t/code-snippets-for-the-entire-knowledge-base-kb/104839/2 "2025-09-26T15:26:05Z")

</div>

With our newest knowledge base tools, you can apply header/footer code across a knowledge base to apply it to all articles. Closing this one out, feel free to reach out with any questions!
