Skip to main content
NextLevel
Contributor IV
Contributor IV
October 10, 2022
Solved

Adding custom font does not work

  • October 10, 2022
  • 3 replies
  • 1987 views

Hi there, 

I am trying to import a custom font (Avenir Next Rounded Pro) to Klaviyo, but always get the error message “One or more font files could not be accessed”

I have uploaded the font files (WOFF, WOFF2, EOT, TTF, OTF, SVG) under “Files” in Shopify and used the public URL as the source address.

And cannot figure out what the problem is.

 

More info on the topic that might be helpful:

  • It is a store that is still password protected. I thought that this might be the problem. However, I tried the same procedure with a store that is not password protected and it didn’t work as well.

 

Thanks for your help in advance!

Hendrik

    This topic has been closed for replies.
    Best answer by stephen.trumble

    Hey @NextLevel 

    Happy to help with your custom font! This type of error message indicates that the file cannot be downloaded due to CORS security. In which case Klaviyo is unable to access the Font on your Server thus having an issue. To resolve this CORS security issue you would need to add headers to the site to ensure that the font can be accessed successfully as described in the following guide How to add custom fonts in email templates.
     
    When you are hosting your own fonts on your own servers, you need to enable Cross-Origin Resource Sharing with the "Access-Control-Allow-Origin" header. More on CORS can be found here https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).

    Hope this helps! Thanks for being an active part of the Klaviyo Community!

    3 replies

    stephen.trumble
    Klaviyo Alum
    October 11, 2022

    Hey @NextLevel 

    Happy to help with your custom font! This type of error message indicates that the file cannot be downloaded due to CORS security. In which case Klaviyo is unable to access the Font on your Server thus having an issue. To resolve this CORS security issue you would need to add headers to the site to ensure that the font can be accessed successfully as described in the following guide How to add custom fonts in email templates.
     
    When you are hosting your own fonts on your own servers, you need to enable Cross-Origin Resource Sharing with the "Access-Control-Allow-Origin" header. More on CORS can be found here https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).

    Hope this helps! Thanks for being an active part of the Klaviyo Community!

    -Stephen
    Contributor I
    August 14, 2023

    Hey @NextLevel 

    Happy to help with your custom font! This type of error message indicates that the file cannot be downloaded due to CORS security. In which case Klaviyo is unable to access the Font on your Server thus having an issue. To resolve this CORS security issue you would need to add headers to the site to ensure that the font can be accessed successfully as described in the following guide How to add custom fonts in email templates.
     
    When you are hosting your own fonts on your own servers, you need to enable Cross-Origin Resource Sharing with the "Access-Control-Allow-Origin" header. More on CORS can be found here https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).

    Hope this helps! Thanks for being an active part of the Klaviyo Community!

     



    Hey Stephen,

    Can you give an updated link to the guide you mentioned?
     

    David To
    Klaviyo Employee
    Klaviyo Employee
    August 14, 2023

    Hey @Adam B,

    Thanks for pointing that out to us! I’ve gone ahead and updated that link mentioned. You can also check out the follow help center resources on using custom fonts and custom hosted fonts in Klaviyo:

    I hope this helps!

    David