# Custom Email Module Issue

**URL:** <https://community.hubspot.com/t/custom-email-module-issue/86255>\
**Category:** Email Marketing Tool\
**Tags:** developer, templates, marketing-email, enterprise\
**Created:** [July 27, 2023, 11:39am UTC](https://community.hubspot.com/t/custom-email-module-issue/86255 "2023-07-27T11:39:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJohnson4](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/djohnson4/32/92090_2.png) [@DJohnson4](https://community.hubspot.com/u/DJohnson4)\
**Post date:** [July 27, 2023, 11:39am UTC](https://community.hubspot.com/t/custom-email-module-issue/86255/1 "2023-07-27T11:39:01Z")

</div>

Hi,

We have recently worked with an email designer to re-design some of our modules.  
When I put the custom modules into an email template, the blue lines you see when you hover over a module stay there and when I add in a rich text module, the editing menu bar doesn’t format correctly in the email builder. I have attached a screenshot to illustrate the issue. I’m not an HTML coder, so I don’t know if something in the code is causing this.

 ![app.hubspot.com_email_6781017_edit_125464496239_content (2).png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/0/f0593505be537871986c1a1dc306e4f02b82d046.png)

This is the code that is being used: [https://codepen.io/DJohnson11365/pen/oNQaPjm](https://codepen.io/DJohnson11365/pen/oNQaPjm)  
Any help would be greatly appreciated

Thanks,

David

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [July 27, 2023, 8:54pm UTC](https://community.hubspot.com/t/custom-email-module-issue/86255/2 "2023-07-27T20:54:41Z")

</div>

Hello, @DJohnson4 thank you for posting in our Community.

I want to share this knowledge base [with more details here.](https://knowledge.hubspot.com/design-manager/customize-advanced-menu-module-options)

And add our top experts to this conversation @TomM2 @danmoyle any recommendations to @DJohnson4 matter?

Thank you,

Pam

---

<div class="post-metadata">

**Author:** ![danmoyle](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danmoyle/32/91166_2.png) [@danmoyle](https://community.hubspot.com/u/danmoyle)\
**Post date:** [July 31, 2023, 3:43pm UTC](https://community.hubspot.com/t/custom-email-module-issue/86255/3 "2023-07-31T15:43:09Z")

</div>

Thanks for the tag @PamCotton. I’m not sure on the code of this custom module, so I don’t know that I’d have a good suggestion. Instead of custom modules, I tend to use the theme modules and then build saved sections. Sorry I wasn’t more help!

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [July 31, 2023, 11:46am UTC](https://community.hubspot.com/t/custom-email-module-issue/86255/4 "2023-07-31T11:46:16Z")

</div>

Hey @DJohnson4 my guess here would be that there’s some code conflict causing issues with the editor, looking through the code you’ve linked, you’re not closing the HTML just in the header alone are you? I don’t see any HubSpot [drag and drop elements](https://developers.hubspot.com/docs/cms/guides/creating-a-drag-and-drop-area) or [rich text hubl tokens](https://developers.hubspot.com/docs/cms/hubl/tags) in here, so I’m unsure how you’re adding in the rich text module.

Did you create this as a custom template, or did you create the header as a custom module within HubSpot?
