Use a custom font
Last updated
Was this helpful?
Last updated
Was this helpful?
We do not provide support for code customizations
If you are not comfortable making code changes, we highly recommend .
We rely on to provide a font selection for your store. To access these settings go to Theme settings > Typography. Installing a font not available in the default selection will involve making some code customizations.
Prepare your font files
Download your font in webfont file types such as .woff2
or .woff
If you don't have a webfont version of your font, you can use a generator to convert it. Font Squirrel has for this.
Upload font files
Open your Shopify admin and navigate to Content > Files.
Upload each file for your font.
Edit theme code
Open up the theme editor and select theme__styles.liquid
from within the snippets folder
Add the below code after the {% style %}
tag. Be sure to replace MY_FONT
with your font name and ensure the URLs are correctly linking to your uploaded font.
From here you can include your font by updating the below code inside the same file. The variables --type-font-body-family
, --type-font-header-family
and --type-font-nav-family
control the font family used for body, headings and navigation text.
The updated code should look something like this