# Module to paste HTML

**URL:** <https://community.hubspot.com/t/module-to-paste-html/67782>\
**Category:** CMS Development\
**Tags:** design-manager, html\
**Created:** [October 24, 2022, 9:42pm UTC](https://community.hubspot.com/t/module-to-paste-html/67782 "2022-10-24T21:42:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpineda91](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@jpineda91](https://community.hubspot.com/u/jpineda91)\
**Post date:** [October 24, 2022, 9:42pm UTC](https://community.hubspot.com/t/module-to-paste-html/67782/1 "2022-10-24T21:42:16Z")

</div>

Hi everyone,

I want to add a lottie file but when I paste the code into the rich text module the \<lottie-player\> gets removed. I saw in a different post that HubSpot had a default HTML module but was told it was removed.

Any ideas on how I can add a module that allows me to add the code?

I added this script to the Site footer HTML:

`<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>`

This is what I tried to add to the Rich Text module:

`<lottie-player src="https://assets6.lottiefiles.com/packages/lf20_buhqqgcm.json" background="transparent" speed="1" style="width: 600px; height: 600px;" loop autoplay></lottie-player>`

Thanks in advance,  
Jonathan

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [October 24, 2022, 11:04pm UTC](https://community.hubspot.com/t/module-to-paste-html/67782/2 "2022-10-24T23:04:46Z")

</div>

Hi Jonathan,

The Rich Text module is notorious for removing or updating code snippets added.  
Your best bet would be creating a custom module via Design Manager and adding that \<lottie-player\> code in that module’s HTML. By default, it would just sit on the left (like below screenshot) but it would need more work to make it look nice on the page.

 ![evaldas_0-1666652010547.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/d/adc05914be8ec0daae1cc5d8371ec8e293c6839f.jpeg)

If you wanted control on placement, then you could try need to utilize columns in a drag and drop template (one column for lottie, one for text). Ideally, that text field would be built in the custom module itself, but it would require additional HTML and CSS code to make it look decent and work on responsive renders.

Unless the theme you are using has modules that allow dropping in HTML (which is unusual).

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [October 25, 2022, 12:42am UTC](https://community.hubspot.com/t/module-to-paste-html/67782/3 "2022-10-25T00:42:18Z")

</div>

Expanding on what @evaldas has said (and lifting from a module @Stephanie-OG made). You’d create a custom module with fields for all the necessary variables of the lottie file

```lia-code-sample
 <lottie-player 
 src="{{ lottie_url }}" 
 background="{{ lottie_background }}" 
 speed="{{ module.lottie_player_settings.speed }}" 
 style="{{ module.lottie_player_settings.style }}" 
 {% if module.lottie_player_settings.autoplay %}autoplay {% endif %}
 {% if module.lottie_player_settings.loop %}loop {% endif %}
 {% if module.lottie_player_settings.show_controls %}controls {% endif %}
 >
 </lottie-player>

```

I believe Stephanie uses this module in her [Geometry](https://ecosystem.hubspot.com/marketplace/website/geometry-theme-by-stephanie-o-gay-garcia? __hstc=244191962.1b7b47e16c968cff822f9bb674e3bb23.1665161348608.1665169069562.1666658372486.3&__ hssc=244191962.1.1666658372486&__hsfp=1957162368) and [Bold](https://ecosystem.hubspot.com/marketplace/website/bold-theme-by-stephanie-o-gay-garcia?__hstc=244191962.1b7b47e16c968cff822f9bb674e3bb23.1665161348608.1665169069562.1666658372486.3& __hssc=244191962.1.1666658372486&__ hsfp=1957162368)themes for reference 😁

* * *

 ![profile2022a.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7273a34ccfe3489fceebc8a36eca751481b59531.jpeg)

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity) | [LinkedIn](https://www.linkedin.com/in/barrygrennan)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 25, 2022, 9:36pm UTC](https://community.hubspot.com/t/module-to-paste-html/67782/4 "2022-10-25T21:36:08Z")

</div>

Thank you very much, @evaldas and @BarryGrennan 🙌
