Dynamically pull in Wordpress header.php & footer.php into HubSpot blog?

I am wondering if it is possible to pull in my Wordpress header.php & footer.php files into our new HubSpot-powered blog. This way, if either of those files are updated within Wordpress, then they will be dynamically updated on the HubSpot blog as well, rather than having to make those changes manually.

This can be done if the WordPress server has CORS enabled to allow a script on HubSpot site to pull html from another server.

I have done this in the past and it works pretty well.

Any chance you could share a code example or documentation?

Here is some example code. You can’t pull in PHP but you can use javascript to pull in rendered HTML. This article has some more examples on loading external content. jQuery Load Content from Another Page Using Ajax - Tutorial Republic

Hi @EC5 ,
If you have built header and footer using APIs "s then you can fetch the navigation on the HubSpot website. The second option is to create a separate header and footer for your HubSpot website.
For your HubSpot blogs, you can use the RSSlisting module to display blogs on your HubSpot website.
You can refer to these links: 2026-03 API reference - HubSpot docs
Generate RSS feed URLs for blogs, authors, and tags
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regard.