- POWER Help Center
- CMS
- Website Settings
How to add code to the Blog header HTML in HubSpot?
In HubSpot Settings under Tools, select Website, then Blog. From the Templates tab, add the code to the Blog listing pages header HTML
Adding code to the Blog listing pages header HTML will apply to the blog listing and blog post templates for the selected blog and has to be added individually if you have more than one blog.
The Blog post header HTML inherits the code from the Blog listing page header HTML unless you click the link to Use custom header HTML for blog posts.
When you add CSS to the Blog listing page header HTML, you will need to enclose it in style tags.
<style>
/* paste your css here */
</style>
A script can be added directly, make sure you've included the necessary script tags.