Adding Java Script into landing page template

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?

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

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!

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

This is the answer! :index_pointing_up: 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.