# Adding Java Script into landing page template

**URL:** <https://community.hubspot.com/t/adding-java-script-into-landing-page-template/118539>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [October 17, 2024, 5:28am UTC](https://community.hubspot.com/t/adding-java-script-into-landing-page-template/118539 "2024-10-17T05:28:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwmarketing](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mwmarketing](https://community.hubspot.com/u/mwmarketing)\
**Post date:** [October 17, 2024, 5:28am UTC](https://community.hubspot.com/t/adding-java-script-into-landing-page-template/118539/1 "2024-10-17T05:28:12Z")

</div>

Adding Java Script into landing page template  
Hello,

I’m trying to add a json script below the head of all of my landing pages using the blank.html template used on this page. Pics attached is my example. Where in the HubSpot setting would I modify this on a global level to affect all of the LP’s at once? Under the advanced area, I see an option called “Additional code snippets”. Why isn’t this option available to me on a template level?

Design Manager shows me this code for my template. Where would I place my script in the blank.html here to not break the main template and all the of the landing pages referencing this one?

 ![129491i6565E2D8DA002343.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/4/d40922a34b2d83c769c288dfc2ded9fa90a0fb10.jpeg)

Individual landing page is giving me the option to add my script under head tags:

 ![129492i4655E50DA392E7DD.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/7/5701757ed79b63dde9d6721e042336474f59bcb0.png)

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [October 17, 2024, 8:37am UTC](https://community.hubspot.com/t/adding-java-script-into-landing-page-template/118539/2 "2024-10-17T08:37:09Z")

</div>

Hi @mwmarketing

Write your JSON JavaScript in the head section of the base file. That way, it will automatically work in any template that uses the base file.

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [October 17, 2024, 2:05pm UTC](https://community.hubspot.com/t/adding-java-script-into-landing-page-template/118539/3 "2024-10-17T14:05:14Z")

</div>

Hi @mwmarketing,

To answer your question:

_Why isn’t this option available to me on a template level?_

The option is actually available at the template level, but editing of templates is disabled if it’s a system or a marketplace template. In order to be able to edit those, you would need to set up a child theme. More information on that here: [Customize your Site with a Child Theme](https://developers.hubspot.com/blog/customize-your-site-with-a-child-theme)

---

<div class="post-metadata">

**Author:** ![albertsg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/albertsg/32/99473_2.png) [@albertsg](https://community.hubspot.com/u/albertsg)\
**Post date:** [October 18, 2024, 11:52am UTC](https://community.hubspot.com/t/adding-java-script-into-landing-page-template/118539/4 "2024-10-18T11:52:07Z")

</div>

This is the answer! ☝ You need to set up a child in order to be able to edit the template. Then you will be able to add the code.
