Adding a module to blog template

This is certainly pretty basic but I would be very glad to get an answer anyways. We share videos on our blog hosted by youtube. Since we want to implement a 2 click solution we created a module which allows us to show privacy policy before the video.
Now how does it work to integrate the module in our blog since I can only implement it on landing pages and website pages.

Hi KFinke!

If I resume your request, you want to add a custom module in the blog post body?

Kind regards,

Matthieu

matthieu.berard@markentive.com

That is exactly what I want to do.

Perfect!

So basically what I used to do:

Go to the the design tool and find your module. Right click on the module and copy the snippet. Then, back in the blog post edit the rich text and click on the advanced dropdown. Select Source code to prompt all HTML elements in the rich text. Then you can paste the snippet of your module previously copied. It’s preferable to encapsulate the code snippet between <div></div> tags like so hubspot will not transform your code snippet as a string. Save your changes and reload the page. The module should appear in the left panel of the page editor.

Let me know if it’s clear for you. :blush:

Matthieu

matthieu.berard@markentive.com

Hey Matthieu, thanks a lot for your help. I thought about this too but if I follow the instructions it still shows up as plain text. Greetings, Karl

Hi Karl,

that’s normal because HubSpot doesn’t interpret the HubL for now. If you show the preview of your blog post it will interpret the HubL and render your custom module inside the body of your blog post. Don’t forget to reload the page once you’ve added the custom module in the body of the blog post to update the content of your custom module in the page editor :blush:

Matthieu

matthieu.berard@markentive.com