Solved

How Many Fall Back Fonts Should I use?

  • 5 February 2022
  • 7 replies
  • 998 views

Badge +3

Hi there! I’m trying to add a custom fonts to my email template following these instructions and establish my fall back fonts.

My desired brand font ad fall back fonts:

  • Desired branded font: Poppins
  • Fall back font 1: Open Sans
  • Fall back font 2: New York
  • Fall back font 3: san-serif

My questions:

  1. Is there a limit to the number of fall back fonts you can have? Is 3 ok?
  2. What code should I use to best execute my desired brand font and fall back fonts?
    Open Sans is known to be a good default web font but it is not available in Klayvio. Do I need to add the font URL for Opens Sans or can I just list the font?

 Code - this is the code I’ve drafted for reference:

 

<style type="text/css">

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap’);

  p, h1, h2, h3, h4, ol, li, ul { font-family: ‘Poppins’, Open Sans, New York,

  sans-serif; }

</style>

 

Thanks in advance for your help!

Best,

Diana

icon

Best answer by Taylor Tarpley 7 February 2022, 16:28

View original

7 replies

Userlevel 7
Badge +60

Hi @Diana123

 

Thanks for sharing your question with us! Love to see you taking advantage of our custom fonts to make your emails align with your brand. 

 

The Help Center documentation you linked is a very helpful tool when setting up the code you need to create to insert your custom font. It is recommended to just use one fallback font. You’re correct, Open Sans isn’t a supported fallback font. Common web-safe fall back fonts include Arial, Georgia, Helvetica, Times New Roman, and Verdana. However, I would also suggest checking out this article to find more web-safe fallback font options. If you are using just one font, then your code appears to be correct. However, I would recommend going through every space, letter and symbol with a fine-tooth comb as even one wrong space or symbol could render the code incorrect! 

 

Finally, when you’ve ensured that everything looks correct in your code and you’re looking to insert it in your template, it should be noted that you only need to add this code to the first text block in your email. The subsequent text blocks will include the custom font

Once you've added the snippet to the source code, you’ll see the custom font applied to any text that has a default style (Normal, Heading 1, Heading 2, etc.). If the font is not being applied to a portion of your text, navigate to that block and make sure that a style has been selected from the paragraph styles menu.

 

 

Thanks for participating in the Community! 

-Taylor 

Badge +3

Thanks, Taylor for the quick reply!

So it seems that I should only pick one web-safe fall back font, and that fall back font should be already supported by Klayvio.

I’m still having an issue getting my custom font to render. Recorded a 2 min Loom video showing my situation and issue. Could you please advise? Essentially the custom font code is not saving and is getting replaced with something else whenever I enter in my text. And I cannot see my custom font Poppins.

Thanks!

 

This is the code I’m using with Poppins as my custom font, and Klayvio supported New York as the fall back.

 

Custom Font Code

<style type="text/css">@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

  p, h1, h2, h3, h4, ol, li, ul { font-family: Poppins, New York,

  sans-serif; }

</style>

 

Thanks!

Userlevel 7
Badge +60

Hi @Diana123

 

Thank you so much for sharing that helpful loom video! It definitely helped me clarify what might be going on here! 

 

For starters, at the time of you trying to implement your custom font code, custom fonts were not supported yet in the new Template Editor. Additionally, you will need to have the text block with at the very top of your template so it will tell the rest of the template what to do and where to insert the fonts essentially. However, I am very happy to share an exciting announcement as of yesterday!  Custom Fonts are Now Supported in the New Template editor. I would check out our February Product Update Blog to see everything in store as well as check out our Community posts about it below. 

 

Thanks!

-Taylor 

Badge +3

Got it, thanks. That’s helpful and I’ll check out those resources. Glad that custom fonts are now available in the new editor. Phew! :)

Userlevel 7
Badge +60

Yes! The documentation on custom fonts still needs to be updated to reflect this - but that will be out very soon! 

Badge +3

Got it, I’ll keep an eye out for it.

Userlevel 7
Badge +60

Linked the New Documentation in my response from the 9th ! 

Reply