Insert lead capture form directly in Hubspot blog post

SOLVE
ingrid1
Member

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?

 

 

0 Upvotes
1 Accepted solution

Accepted Solutions
David_HubSnacks
Solution
Contributor | Elite Partner

 

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

Warm regards,
David
HubSnacks
Unlimited HubSpot Tasks For a Fixed Month Fee
www.hubsnacks.com
HubSpot Certified Diamond Solutions Partner

View solution in original post

4 Replies 4
David_HubSnacks
Contributor | Elite Partner

Hi Ingrid,

 

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

 

 
David
 
HubSpot Certified Diamond Solutions Partner
See our latest independent 5-Star reviews here...

 

 

Warm regards,
David
HubSnacks
Unlimited HubSpot Tasks For a Fixed Month Fee
www.hubsnacks.com
HubSpot Certified Diamond Solutions Partner
0 Upvotes
ingrid1
Member

Hi David,

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

Skjermbilde 2020-06-04 kl. 13.00.42.png

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. 

Skjermbilde 2020-06-04 kl. 13.07.29.png

Is there anything I can do to fix this? 

0 Upvotes
David_HubSnacks
Solution
Contributor | Elite Partner

 

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

Warm regards,
David
HubSnacks
Unlimited HubSpot Tasks For a Fixed Month Fee
www.hubsnacks.com
HubSpot Certified Diamond Solutions Partner

View solution in original post

ingrid1
Member

Thank you David! I managed to insert the form. 

0 Upvotes