Website Building » Shopify » Can You Add More Fonts to Shopify?

Can You Add More Fonts to Shopify?

Last updated on January 13, 2023 @ 5:12 am

If you’re running a business, you want your website to look professional. That means using high-quality images and fonts that match your brand.

But what if the font you want to use isn’t available on Shopify? Can you add more fonts to Shopify?

The answer is yes! You can add custom fonts to your Shopify store using the CSS @font-face rule. This rule allows you to specify a custom font that will be downloaded and used by the browser when displaying your web page.

To use the CSS @font-face rule, you first need to find or create a custom font that you want to use. There are many websites that offer free or paid fonts for download, such as Google Fonts, Adobe Fonts, and Font Squirrel. Once you’ve found or created a font that you want to use, follow these steps:

    1. Download the font file from the website where you found it. Make sure to download a file format that is supported by Shopify, such as TTF, OTF, or WOFF.

    2. Upload the font file to yourShopify admin.

    Go to Online Store > Themes > Actions > Edit code. In the Assets directory, click Add a new asset, and then upload your font file.

PRO TIP: Adding too many fonts to your Shopify store can slow down your site and make it difficult for customers to navigate. Be sure to limit the number of fonts you use to a maximum of three.
    3. Specify the font in your CSS code.

    Go back to the Edit code page, and in the Layout directory, open the theme.liquid file. Add the following code at the bottom of this file:

    @font-face {
        font-family: 'Your Font Name'; /* Replace with your own font name */
        src: url('{{ 'YourFontFileName.ttf' | asset_url }}'); /* Replace with your own font file name */
    }

    4. Save your changes.

    Your new font will now be available for use in your CSS code! You can specify it just like any other font using the font-family property:

    body { 
        font-family: 'Your Font Name', sans-serif;  /* Replace with your own font name */ 
    }

Conclusion: You can add more fonts to Shopify by using the CSS @font-face rule! This allows you to specify a custom font that will be downloaded and used by the browser when displaying your web page

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.