Suggestions for sharing header/footer code

Highlighted
New Contributor

We have a website hosted outside of hubspot and now we want to create a few landing pages within hubspot, but we'd like the branding (header/footer) to remain consistent across sites for a seamless user experience. Any suggestions for hosting the header and footer in one place? When we make a change to the header, we'd prefer not to have to update it in two places. 

Reply
0 Upvotes
1 Reply 1
Highlighted
Top Contributor

Hi @nmoore 

 

You could maybe host your css file on a CDN and reference that in your non-Hubspot site and Hubspot pages instead of a relative file?

 

Not sure what you'd do for the HTML, maybe use ES modules, again from a CDN, and add your header and footer via JS? ES modules aren't supported by IE. Might be easier to just duplicate them in Hubspot.