Liquid, JavaScript, themes, sales channels
Hello! I'm looking for help in uploading my own custom font to my store.
@dboost1
Kindly take a look into this step-by-step tutorial on how to add custom fonts to your website.
Kind regards,
Diego
Please follow the steps:
- Step 1: Upload font in Assets. https://i.imgur.com/AqO9RnX.png
- Step 2: Get font-face in the CSS file. Ex:
@font-face {
font-family: 'font-name';
src: url('{{ 'font-name.eot' | asset_url }}') format('embedded-opentype'),
url('{{ 'font-name.ttf' | asset_url }}') format('truetype'),
url('{{ 'font-name.woff' | asset_url }}') format('woff'),
url('{{ 'font-name.svg' | asset_url }}') format('svg');
font-display: swap;
}
Hope it clear to you.
I tried this but it isn't appearing correctly
@dboost1
Please share your URL.
@dboost1
You were almost there. You have written "ttf" in the format of the font family. You should use "woff" in your case.
Kind regards,
Diego
Hi Diego, I've done exactly the same as written. Still, the font won't show. Very weird. Could you maybe have a look at it?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024