Custom fonts
Advanced
Last updated
Was this helpful?
Advanced
Last updated
Was this helpful?
Theme retirement Ira is no longer available on the Shopify theme store. Theme support and updates for current users will end after May 18, 2024. .
We do not support code customizations. This guide offers a basic reference for advanced users familiar with HTML and CSS. Always test code changes on a duplicated, unpublished version of your theme. For assistance, we recommend finding a professional developer through or .
With Custom CSS, it's possible to add custom fonts with a few edits to your theme code. Custom fonts are uploaded to Shopify Files and then applied manually to different text elements in the Code editor.
Before deciding to use a custom font, we highly recommend considering one of the hundreds of fonts in as your first choice, since they are fully supported by all our themes.
Custom fonts will not appear as an option in the Theme Editor's font selector.
After uploading your font files, you can import them in your Theme settings using the Custom CSS field.
Once you've added your font, you can apply it manually to elements of your theme with the CSS code below.
Ira groups theme text into 3 categories: Logo, Headings, and Body. Use the code below to override the font settings in your theme editor.
Note | You can continue to use the Size, Capitalize, and Letter spacing font settings in the theme editor to apply to your custom font.
If that sounds like you, you can find and copy the CSS selector with the Inspector tool, then edit and use the following example below:
While we recommend using the available Custom CSS settings in the theme editor, Ira includes a custom.css
file in the Styles folder.
Always duplicate your current theme before making edits to the code. Use the unpublished version to add and test customizations before publishing your theme.
Related links
All font files should be in WOFF
and WOFF2
formats. While TTF
and OTF
can be used, they are not web-supported fonts and may cause issues. You can convert font formats with free tools like .
Using custom fonts may contribute to longer load-times. See our to learn about balancing features and customizations with load times.
Note | If your require assistance, we recommend contacting or .
Applying fonts to specific elements requires knowing how to use your browser's and familiarity with .