Your fonts help set the tone of your online store before a customer reads a single sentence. Whether your brand is playful, minimal or editorial, the right typography can make your website feel more consistent with your packaging, logo and marketing.
There are two main ways to change fonts on Shopify: choose a font already available in your theme, or install your own custom webfont. This guide covers both, with a practical code example for the second option.
First, check whether you need a custom font
If you simply want a different look, start with your theme’s built-in typography settings. You may find a suitable font without adding code or uploading files. The available choices depend on your theme; free Shopify themes use Shopify’s font library.
If your brand uses a specific typeface that is not available in your theme, you will need a custom font installation instead.
Option 1: Change fonts using your theme settings
- In your Shopify admin, go to Online Store and find the theme you want to edit.
- Click Edit theme, then open Theme settings.
- Select Typography.
- Choose the heading or body font you want to change, select a replacement and review the preview.
- Save your changes when you are happy with the result.
The exact settings and labels can vary between themes. Check your theme developer’s instructions if your typography controls look different.
Option 2: Install your own custom font
This method involves uploading a webfont and editing CSS. If you are not comfortable working with theme code, ask a developer to handle the installation.
1. Prepare your font files
Use a web-ready font file, preferably WOFF2. Start with only the styles you actually need, such as regular and bold. Each additional file is another resource a browser may need to download.
For the example below, we will use a regular font file named brand-regular.woff2. Replace this example filename and font name with your own.
2. Duplicate your theme before editing
Create a duplicate of your theme as a backup, then work on an unpublished copy. This gives you somewhere to test the font before making it visible to customers.
3. Upload the font to your theme’s Assets folder
- Find your working theme in Online Store.
- Open its actions menu and choose Edit code.
- Right-click the assets folder and choose Upload.
- Select your webfont file and upload it.
Use a simple filename without spaces, and keep a note of the exact spelling and extension.
4. Define the font in your stylesheet
Open a CSS file in the assets folder that your theme already loads across the storefront. Depending on the theme, this might be called base.css, theme.css or something else. Do not assume that every theme uses the same filename.
Add the following rule at the end of that stylesheet:
@font-face {
font-family: 'Brand Font';
src: url('./brand-regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
This example assumes that the stylesheet and font file are both in your theme’s assets folder. The @font-face rule tells the browser where to find the font; it does not apply the font to your text yet.
font-display: swap allows a fallback font to display while the custom font loads.
5. Apply the font to your text
To use your font for standard headings, add this below the font definition:
h1, h2, h3, h4, h5, h6 {
font-family: 'Brand Font', sans-serif;
}
If you want to use it for body text as well, a starting point is:
body {
font-family: 'Brand Font', sans-serif;
}
These are starting examples, not universal selectors. Themes can apply their own font rules to navigation, buttons, product titles and other components. You may need to adjust the selectors to match your theme. Choose a suitable fallback, such as serif for a serif typeface.
6. Add separate font weights when needed
If you have a separate bold file, define it with another @font-face rule using the same family name and font-weight: 700. Point that rule to the bold file, not the regular one. Use the weight values supplied with your fonts rather than assuming every file represents the same weight.
7. Save, preview and test
Save your changes and preview the working theme on desktop and mobile. Check heading wrapping, product titles, navigation, buttons, forms and paragraphs. A different font can change the amount of space text occupies, so review line height and spacing too.
Test regular and bold text, punctuation and any special characters your store uses. Only publish the working theme once you are happy with the result.
Why is my custom font not showing?
The filename does not match. Check the filename, extension and path in your CSS against the uploaded asset.
The font is defined but not applied. You need both an @font-face rule and a font-family declaration targeting the relevant text.
The theme overrides your rule. Inspect the affected element in your browser’s developer tools to see which font rule takes priority. Adjust the selector rather than adding !important everywhere.
Only some text changes. Your theme may style headings, menus and buttons separately. Update those components deliberately, and avoid a universal selector that could interfere with icon fonts.
You are viewing a different theme. Make sure you are previewing the same theme copy you edited.
Will this change the checkout font?
This guide covers your online store theme. Do not assume that storefront font rules will carry through to checkout. Theme Custom CSS does not apply to the checkout page.
Keep your font setup simple
Custom fonts add downloads, so use them selectively. A distinctive heading font paired with an easy-to-read body font is often a better starting point than several competing typefaces. System fonts are worth considering for body text because they are already installed on customers’ devices.
Keep a record of your custom code and recheck the installation after a theme update. Code changes can require attention when you move to an updated theme copy.
Need help adding your brand fonts?
If you would rather skip the code, Customise Website can help install your custom fonts and adjust your theme’s typography. Get in touch with your theme name and the fonts you want to use so we can discuss the right setup for your store.