# Adding a module to blog template

**URL:** <https://community.hubspot.com/t/adding-a-module-to-blog-template/69484>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [November 17, 2022, 3:43pm UTC](https://community.hubspot.com/t/adding-a-module-to-blog-template/69484 "2022-11-17T15:43:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KFinke](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@KFinke](https://community.hubspot.com/u/KFinke)\
**Post date:** [November 17, 2022, 3:43pm UTC](https://community.hubspot.com/t/adding-a-module-to-blog-template/69484/1 "2022-11-17T15:43:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MBERARD](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mberard/32/61390_2.png) [@MBERARD](https://community.hubspot.com/u/MBERARD)\
**Post date:** [November 17, 2022, 3:55pm UTC](https://community.hubspot.com/t/adding-a-module-to-blog-template/69484/2 "2022-11-17T15:55:56Z")

</div>

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](mailto:matthieu.berard@markentive.com)

---

<div class="post-metadata">

**Author:** ![KFinke](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@KFinke](https://community.hubspot.com/u/KFinke)\
**Post date:** [November 18, 2022, 8:53am UTC](https://community.hubspot.com/t/adding-a-module-to-blog-template/69484/3 "2022-11-18T08:53:24Z")

</div>

That is exactly what I want to do.

---

<div class="post-metadata">

**Author:** ![MBERARD](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mberard/32/61390_2.png) [@MBERARD](https://community.hubspot.com/u/MBERARD)\
**Post date:** [November 18, 2022, 9:07am UTC](https://community.hubspot.com/t/adding-a-module-to-blog-template/69484/4 "2022-11-18T09:07:14Z")

</div>

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. 😊

Matthieu

[matthieu.berard@markentive.com](mailto:matthieu.berard@markentive.com)

---

<div class="post-metadata">

**Author:** ![KFinke](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@KFinke](https://community.hubspot.com/u/KFinke)\
**Post date:** [November 21, 2022, 10:38am UTC](https://community.hubspot.com/t/adding-a-module-to-blog-template/69484/5 "2022-11-21T10:38:52Z")

</div>

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

 ![sourcecodemodule.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/e/de388e7a3b17069e19a8d7f0563376a30b810632.png)

---

<div class="post-metadata">

**Author:** ![MBERARD](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mberard/32/61390_2.png) [@MBERARD](https://community.hubspot.com/u/MBERARD)\
**Post date:** [November 22, 2022, 4:38pm UTC](https://community.hubspot.com/t/adding-a-module-to-blog-template/69484/6 "2022-11-22T16:38:00Z")

</div>

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 😊

Matthieu

[matthieu.berard@markentive.com](mailto:matthieu.berard@markentive.com)
