# Email Font

**URL:** <https://community.hubspot.com/t/email-font/10693>\
**Category:** CMS Development\
**Created:** [October 23, 2018, 10:12pm UTC](https://community.hubspot.com/t/email-font/10693 "2018-10-23T22:12:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErinKas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/erinkas/32/99745_2.png) [@ErinKas](https://community.hubspot.com/u/ErinKas)\
**Post date:** [October 23, 2018, 10:12pm UTC](https://community.hubspot.com/t/email-font/10693/1 "2018-10-23T22:12:28Z")

</div>

Can anyone help point me in the right direction. Currently this email is using Raleway font. i want to update it to open sans. It is not an option in the default email settings. Here is a glimpse of the head of the email. Any help is greatly appreciated.

 ![Email html.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/2bcdbf20b25f792387f6d2150a05914e6be22929.jpeg)

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [October 24, 2018, 1:50am UTC](https://community.hubspot.com/t/email-font/10693/2 "2018-10-24T01:50:50Z")

</div>

To swap out to [Open Sans](https://fonts.google.com/specimen/Open+Sans?selection.family=Open+Sans) you can import the font from Google Fonts and swap out the line below for Raleway, like this:

```auto
<style>
 @import url('https://fonts.googleapis.com/css?family=Open+Sans');
 [style*="sans-serif"] {
 font-family: 'Open Sans', sans-serif;
 }

....

```

That [selector](https://www.w3schools.com/cssref/css_selectors.asp) ([style\*=“sans-serif”]) attempts to target all elements that contain “sans-serif” in the value of the style attribute and then give them the ‘Opens Sans’ font, although I’m not 100% sure this works since inline styling [should overwrite](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity) anything in your style tags. You may want to use other selectors and remove the inline styling or swap the inline styling to Open Sans.

Also, bear in mind that unfortunately custom fonts [aren’t widely supported](https://www.campaignmonitor.com/css/) across email clients so be sure to add in fallback fonts (like the sans-serif font above).

* * *

[![|300](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e6ddb445b684524bbcbd802044a9ca3919d1fbc7.png)](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)HubSpot Design / Development

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_

---

<div class="post-metadata">

**Author:** ![ErinKas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/erinkas/32/99745_2.png) [@ErinKas](https://community.hubspot.com/u/ErinKas)\
**Post date:** [October 24, 2018, 6:42pm UTC](https://community.hubspot.com/t/email-font/10693/3 "2018-10-24T18:42:40Z")

</div>

Hey @Stephanie-OG

I had the wrong template when I asked. I have no clue where to add that import link or update the email to get the open sans to populate on my email templates. So sorry. Can you help again? Thanks!

 ![Open sans_.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/3/f348e6a76d1f15242072cd96e4cb983617a465dc.jpeg)

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [October 24, 2018, 9:49pm UTC](https://community.hubspot.com/t/email-font/10693/4 "2018-10-24T21:49:51Z")

</div>

All imports should go at the top just after your opening \<style\> tag in an email template. So in the screenshot below you would have:

```auto
<style>
 @import url('https://fonts.googleapis.com/css?family=Open+Sans');

 ... etc.

```

You can then, in theory, set the font for all of your text. For example, the below applies the font to all of your body font:

```auto
<style>
 @import url('https://fonts.googleapis.com/css?family=Open+Sans');
 body {
 font-family: 'Open Sans', sans-serif;
 }
 ... etc.

```

You can also add the font directly to an element. So, if you have something like:

`<p>This is a paragraph</p>`

You can give it your font like this:

`<p style="font-family: 'Open Sans', sans-serif;">This is a paragraph</p>`

Again, bear in mind that unfortunately custom fonts will not work in many email clients and will default to the second font above (sans serif).

You might also want to look at [this article](https://litmus.com/blog/the-ultimate-guide-to-web-fonts).

* * *

[![|300](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e6ddb445b684524bbcbd802044a9ca3919d1fbc7.png)](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)HubSpot Design / Development

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_
