# Using custom font on theme module shows code below the text

**URL:** <https://community.hubspot.com/t/using-custom-font-on-theme-module-shows-code-below-the-text/106784>\
**Category:** CMS Development\
**Tags:** free\
**Created:** [May 9, 2024, 5:20am UTC](https://community.hubspot.com/t/using-custom-font-on-theme-module-shows-code-below-the-text/106784 "2024-05-09T05:20:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtg001](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@dtg001](https://community.hubspot.com/u/dtg001)\
**Post date:** [May 9, 2024, 5:20am UTC](https://community.hubspot.com/t/using-custom-font-on-theme-module-shows-code-below-the-text/106784/1 "2024-05-09T05:20:19Z")

</div>

Hello everyone, I need your help with an issue I’ve run into while working with a custom font on a HubSpot theme module.

I’ve added custom fonts to the module by following this documentation.

[Add custom fonts to a theme (hubspot.com)](https://developers.hubspot.com/docs/cms/building-blocks/themes/custom-fonts)

Here is the result. It now appears on the drop down.

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/e/0eb4138bca019c188e1bcc5d5fad3d09470dc4a5.png)

However, I’m encountering an issue where it shows a code snippet below the text. In this example at left column, I changed the card text font to a custom one.

 ![post-img.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/74b631f6245718e5f90a479ac1f02a48a6210172.png)

On the right column, we have the rich text module where I’ve set the same custom font, and it isn’t displaying code below it. I’ve noticed that this only occurs with rich text contained inside other HubSpot theme modules.

---

<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:** [May 9, 2024, 9:25pm UTC](https://community.hubspot.com/t/using-custom-font-on-theme-module-shows-code-below-the-text/106784/2 "2024-05-09T21:25:07Z")

</div>

Hi, @dtg001 👋 Thanks for the question. Hey @GRajput , do you have any suggestions for @dtg001?

Thanks for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [May 10, 2024, 8:01am UTC](https://community.hubspot.com/t/using-custom-font-on-theme-module-shows-code-below-the-text/106784/3 "2024-05-10T08:01:41Z")

</div>

Hi @dtg001

In the rich text, the font option will not appear in the font dropdown due to the Hubspot limitation.  
Please check the limitation in the same [doc](https://developers.hubspot.com/docs/cms/building-blocks/themes/custom-fonts?_gl=1*1oht643*_ga*MjA4NTE0OTQ1Ni4xNzE0OTc3MTcz*_ga_LXTM6CQ0XK*MTcxNTMyNzUxNC4zMS4xLjE3MTUzMjc1MjkuNDUuMC4w) at the bottom.

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!
