# Problem adding module to html file

**URL:** <https://community.hubspot.com/t/problem-adding-module-to-html-file/77251>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [March 15, 2023, 5:29pm UTC](https://community.hubspot.com/t/problem-adding-module-to-html-file/77251 "2023-03-15T17:29:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KasieMarie](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@KasieMarie](https://community.hubspot.com/u/KasieMarie)\
**Post date:** [March 15, 2023, 5:29pm UTC](https://community.hubspot.com/t/problem-adding-module-to-html-file/77251/1 "2023-03-15T17:29:18Z")

</div>

Hello community,

I’m working on updating our blog template to add social sharing buttons. Because of our branding, I cannot use the hubspot developed module for social sharing and need to customize the icons.

I put in the module snippet into the template code as seen below:

 ![KasieMarie_0-1678900906713.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/f686f5b5867c84ba68a8ae1214977178d3c30230.jpeg)

The output that I get is:

 ![KasieMarie_1-1678901033072.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/c/3ccb212badb54eee1269a9d8ed13ad301bfa7399.jpeg)

The problem is that I’m not seeing any of the social sharing buttons on the template where I put them (in live, or in preview).

 ![KasieMarie_2-1678901258052.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/e/0e1041b29b5bdd0c4ca2340f4d8fdf2235368882.png)

I do see the social sharing module in the blog editor. But, the issue is that I want to social sharing buttons as part of the blog template, not the blog post itself.

\*note: when I put in the snippet for the hubspot provided social sharing module, the code works fine.

I’ve checked the path, I’ve manually entered the snippet, I’ve even re-cloned the social sharing module to ensure I didn’t introduce a bug.

Any help on this?

Best,

Kasie

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [March 16, 2023, 10:33am UTC](https://community.hubspot.com/t/problem-adding-module-to-html-file/77251/2 "2023-03-16T10:33:37Z")

</div>

Hi @KasieMarie,

first thing I’d try would be to right click on the custom sharing module, copy the snippet and paste it into the template.

Also try to change the name of this module in the template so it becomes something different. So instead of

`{% module "module_NUMBERS" path="" label="" %}`

try

`{% module "custom_social_sharing" path="" label="" %}`

or change any number in the current name.

Technical background: You can’t have the same name twice in a template.

best,

Anton

---

<div class="post-metadata">

**Author:** ![ankitparmar09](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ankitparmar09/32/64399_2.png) [@ankitparmar09](https://community.hubspot.com/u/ankitparmar09)\
**Post date:** [March 30, 2023, 9:24am UTC](https://community.hubspot.com/t/problem-adding-module-to-html-file/77251/3 "2023-03-30T09:24:18Z")

</div>

**Problem adding module to html file**  
Hello @KasieMarie

I can give you a module snipped, it can help you.

`{% module "social_sharing" path="../modules/social-sharing", label="social-sharing" %}`

Thanks

---

<div class="post-metadata">

**Author:** ![co\_space](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/co_space/32/104913_2.png) [@co\_space](https://community.hubspot.com/u/co_space)\
**Post date:** [May 24, 2023, 10:01pm UTC](https://community.hubspot.com/t/problem-adding-module-to-html-file/77251/4 "2023-05-24T22:01:41Z")

</div>

Did you ever find a solution? I’m dealing with a similar issue.
