Hi @khushbru
This goes beyond previewing emails alone.
You can check out a few articles on it :
https://themes.email/woocommerce/how-to-add-custom-fonts-in-woocommerce-order-emails.html
Hope that helps.
@digamberpradhan Hi, this is for google fonts and it is working fine. But how to use custom fonts?
You have to host the font on your site, and then enqueue it in the template i believe the link i sent you has an example of that.
I’ve tried the example for google font:
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> it is working fine.
But when I use custom font like this:
<style type="text/css">
@font-face {
font-family: "Recoleta";
src: url("https://woocommerce-364899-2033018.cloudwaysapps.com/wp-content/uploads/RECOLETA-REGULAR.TTF") format("truetype"),
url("https://woocommerce-364899-2033018.cloudwaysapps.com/wp-content/uploads/RECOLETA-REGULAR.woff") format("woff");
font-weight: 400;
}
</style>
It is not working.
Can you please give me another way?
-
This reply was modified 4 years, 6 months ago by
khushbru.