🎉   New theme alert!   Check out   ETHERYX
Skip to content

Fonts

IMPORTANT

Ensure you have the correct license for your font, including permission to use it on a commercial website.

WARNING

The font files must include WOFF and WOFF2 formats. Other formats like EOT, TTF, and OTF are not supported for Webfonts.

Custom Fonts - Self-hosted

Step ① - upload the font

  1. From your Shopify admin, go to Content → Files.
  2. Click Upload files
  3. Select up to 20 files to upload.

    Each file can be up to 20 MB in size.

  4. Click Open to upload the files.
  5. To get the file URL, hover over the file, click the , then click Copy link

Step ② - prepare your font

  1. From your Shopify admin, go to Online Store → Themes
  2. Click •••Edit code
  3. Search for global-fonts.liquid and open the file.
  4. Use OpenThinking's @font-face generator to create the necessary code for your font.
  5. Copy the generated code and paste it into the global-fonts.liquid file.
  6. Click Save when finished.

Step ③ - load the font into your theme

  1. From your Shopify admin, go to Online Store → Themes
  2. Click Edit theme
  3. In the left panel, go to Theme settings → Typography
  4. Enable custom fonts by toggling Enable custom fonts.
  5. You're done! 🎉

Video tutorial available

External services

If instead of a self-hosted font, you want to use an external service like Google Fonts or TypeKit (Adobe Fonts), you can do so by adding the embed code to your OpenThinking Shopify theme.

  1. From your Shopify admin, go to Online Store → Themes

  2. Click •••Edit code

  3. Open the global-fonts.liquid file.

  4. Choose your provider:

    To add Google Fonts to your Etheryx theme, paste the embed code you've got, inside the file, e.g. Roboto

    html
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
  5. Below that, add this style block to define your theme fonts:

    html
    <style>
    :root {
     --fontFamily: "Inter"; /* main font */
     --hFontFamily: "Inter"; /* heading font */
     --logoFontFamily: "Inter"!important; /* logo font */
    }
    </style>

    NOTE

    Replace "Inter" with the font name you're using. (e.g. "Roboto")

    NOTE

    To apply the font only to the main body text, remove:

    css
    --hFontFamily: "Inter";
    --logoFontFamily: "Inter"!important;

    To apply it only to headings, remove the other entries and keep:

    css
    --hFontFamily: "Inter";

    NOTE

    To use different fonts for each location (body, heading, logo), add multiple fonts from your embed provider (google, adobe etc.) and update each line with the correct font name.

  6. Click Save