Insert lead capture form directly in Hubspot blog post

I have a Hubspot blog and have created a lead capture form for gated content that I want to add in my blog post. I have tried to insert the form embed code into the blog post but I get an error message that reads: “There was a problem embedding your content. Please use a different URL or check the embed code.” (it is the correct code).

It seems like this only works for external websites and not in Hubspot? How do I add a form directly to my blog post without changing my blog template? I don’t want a lead capture form in all my blog posts.

Any help?

Hi Ingrid,

Can you show the blog post you are trying to insert the form?

David

www.hubsnacks.com

HubSpot Certified Diamond Solutions Partner

See our latest independent 5-Star reviews here…

Hi David,
Thanks for your response. Here’s a screenshot of our Hubspot blog editor. Our blog template is displayed on the left.

I’d like to insert a form directly into the blog post without changing our blog template. I’ve read that you can easily do this for external sites by inserting the embed code from the Hubspot form to your blog post. However, when I embed the code I get an error message.

Is there anything I can do to fix this?

The only way you can do it without touching the templates is to go under Advanced then source code and add the embed code where you want it to appear. Using the Insert then Embed does not work.

The more sophisticated way is explained well here:

https://community.hubspot.com/t5/CMS-Development/Embed-Form-in-Blog/td-p/21670

Warm regards,

David

Thank you David! I managed to insert the form.

Hi Ingrid & David,

I think there was an update after this post. Adding hubspot form embed code from insert->embed menu now works fine. Now it is much easier to add the hubspot form. Thanks a lot who ever added this feature to product roadmap :slightly_smiling_face: