Shopify themes, liquid, logos, and UX
I would like to add a custom font to my local theme. Does anyone have any idea how to do that?
Hello @nesna
You can refer to the following instructions.
https://ezfycode.com/blog/add-custom-fonts-to-shopify
https://community.shopify.com/c/shopify-design/adding-custom-fonts-to-shopify/td-p/1703100
Kind & Best regards,
GemPages Support Team
Hi @nesna
This is Victor from PageFly - Shopify Page Builder App
You can follow my steps below to upload your custom font.
To get started, you will first need to upload the font into the Assets folder of your theme.
To get to the Assets folder of your theme, navigate to your Shopify dashboard. From here, go to: Online Store > Actions > Edit Code
Scroll down till you find the Assets folder and click add a new asset, select your font file and hit upload asset.
Next up: telling your theme that it can use the font file that you have uploaded.
Go to your theme's main CSS file (usually named styles.scss.liquid, theme.scss.liquid, or another variation of this). This file can be found in the Assets folder of your theme - navigate to the bottom of this file to add new code into your theme.
Add the code below, replacing highlighted elements of the code with actual data.
Font name > the name of the font, if the font has more than one word in it's name it will need "quotation marks" - these will also be needed when inserting into Shogun.
Filename > the name of the file that was just uploaded to your theme including the file extension, for example, cosmic_sans_bold.ttf.
Format > the format of the font that was uploaded, for example, for Athena.ttf this would be "TrueType".
@font-face {
font-family: "Font name";
src: url({{ "Filename" | asset_url }}) format("Format");
}
Hope this can help you solve the issue
Thank you
Viktor | PageFly
You can add custom font to any theme.
Added font will reflect in your setting where you can choose.
Hi @nesna ,
Please refer the video below to get the instruction how you can add custom fonts in Shopify customizer.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024