When I embed it on my WordPress site (with the Modal Text / HTML Link builder block) it always gives me this "unknown error": "Error "ReferenceError: hbspt is not defined".
This leaves me unable to even make changes to the page.
I tried starting over and tried adding <div> tags in the embed code (after research on this forum) but nothing seems to work.
Any ideas what's wrong with the embed code and how I can solve this?
The error "ReferenceError: hbspt is not defined" likely means that when calling the function "hbspot" on your page to try and load the form create script, the shell.js hasn't been created. This could means that the shell script loads after all the html has loaded or there's an issue loading the shell script.
In this case, it looks like when embedding HubSpot form on a WordPress page, there are some potential issues that may cause the code to break - Refer to this documentation: Externally embedded HubSpot form isn't working.