Shopify themes, liquid, logos, and UX
Hi Community,
I am absolutely new to this and trying to figure out how to add my fonts. My fonts are Proxima Nova and Fontin, both of which are not on google. I understand I need to Add a file under the Assets before I am able to add code or move. However, I am unable to find the right css file. Can someone please direct me how I can secure those files in the right format which can be uploaded in the Assets as a new Asset.
Much appreciated!
Solved! Go to the solution
This is an accepted solution.
Hi @ParulK_21
I am Richard Nguyen from PageFly - Advanced Page Builder. I would love to give you some recommendations.
We will have the following steps:
- first, you need to download the font and convert it to woff2 format
- In the next step you will upload that font to the assets file
- then add it to base.css or style.scss or theme.css of theme.scss like this: here is an example
- then we can use for any element:
Here link font:
https://freefontsfamily.com/proxima-nova-font-family-free-download/
https://www.cufonfonts.com/font/fontin
Web convert to woff2 : https://cloudconvert.com/otf-to-woff2
Best Regards;
Richard-pagefly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hello @ParulK_21
Follow the below steps to secure files in the right format to be uploaded to the Assets as a new Asset.
Step 1:
Download the Font and convert it into .woff2 or .woff format.
Step 2:
Upload in the Asset Folder.
Step 3 :
Add some CSS Code in the base.css file at the bottom. which is written below
If you are using the .woff format then use the below code
@font-face {
font-family: 'Proxima';
src: url('Proxima Nova Font.woff') format('woff');
font-style: normal;
}
tagname or .classname or #id{
font-family: Proxima;
}
If you are using .woff2 format then use below code
@font-face {
font-family: 'Proxima';
src: url('Proxima Nova Font.woff2') format('woff2');
font-style: normal;
}
tagname or .classname or #id{
font-family: Proxima;
}
Refer to the below-provided image.
Hope it helps, let us know if you need more help.
All the best,
Team CedCommerce
This is an accepted solution.
Hi @ParulK_21
I am Richard Nguyen from PageFly - Advanced Page Builder. I would love to give you some recommendations.
We will have the following steps:
- first, you need to download the font and convert it to woff2 format
- In the next step you will upload that font to the assets file
- then add it to base.css or style.scss or theme.css of theme.scss like this: here is an example
- then we can use for any element:
Here link font:
https://freefontsfamily.com/proxima-nova-font-family-free-download/
https://www.cufonfonts.com/font/fontin
Web convert to woff2 : https://cloudconvert.com/otf-to-woff2
Best Regards;
Richard-pagefly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hey here @PageFly-Richard !
Do you mind helping me with this? Im unable to understand where the problem is...
I added at the end of the base.css the code provided in this post, and Im still unable to see the font in my webpage. Its still showing this times new roman style rather than my font.
Any idea what could be the problem?
This is the font Im trying to use
Hi @decco, I know this is a late response, but I faced a similar issue recently. Shopify can be quite particular about file names, especially when it comes to hyphens and underscores, as they often cause parsing problems. Here's how you can fix it:
This should resolve the issue and allow your custom font to display correctly.
Thanks so much! This worked fine while using a desktop but I noticed when I use my mobile device the font does not show. Has this happened to you? And do you know how I might go about fixing this? Thanks!
Hi Richard, I've added my font file in .woff2 format under Assets. The next step is where I can't get to- where you advise we add to base.css and/or theme.css. How do I add it to one of those?
Thank you in advance!
Hi Richard, I am trying to do the same (add a custom font that is not available in Shopify) to my store but it seems the solution you provided does not support my Theme or doesn't work anymore in general.
So far, I have:
1. added the font in both woff as woff2 to my Files (Content)
2. Added an asset for each font
3. Added the following code to the theme.liquid file
<style>
@font-face {
font-family: 'Bogart-Regular-trial';
src: url('{{'Bogart-Regular-trial.woff' | asset_url}}');
}
@font-face {
font-family: 'Bogart-Regular-trial';
src: url('{{'Bogart-Regular-trial.woff2' | asset_url}}');
}
</style>
4. Added the following code to the main.css file
@font-face {
font-family: ‘Bogart-Regular-trial’;
src: url(https://cdn.shopify.com/s/files/1/0596/9618/5538/files/Bogart-Regular-trial.woff?v=1724240364) format(‘woff’);
}
tagname or .classname or #id{
font-family: Bogart-Regular-trial;
}
@font-face {
font-family: ‘Bogart-Regular-trial’;
src: url(https://cdn.shopify.com/s/files/1/0596/9618/5538/files/Bogart-Regular-trial.woff2?v=1724241322) format(‘woff2’);
}
tagname or .classname or #id{
font-family: Bogart-Regular-trial;
}
Hi there!
I wanted to find out if you can add the font size to this?
I have multiple headings that are using the same font, but have different px sizes
Hope to hear back from you!
Hello,
I followed all the instructions you gave, but after that the Font in my Page stayed the same. I tried changing it in the theme settings after writing that css into the page code but the font doesn't show up.
Can someone please tell me how I can change the font after writing the code?
Thank you 🙂
This is an accepted solution.
Hello @ParulK_21
Follow the below steps to secure files in the right format to be uploaded to the Assets as a new Asset.
Step 1:
Download the Font and convert it into .woff2 or .woff format.
Step 2:
Upload in the Asset Folder.
Step 3 :
Add some CSS Code in the base.css file at the bottom. which is written below
If you are using the .woff format then use the below code
@font-face {
font-family: 'Proxima';
src: url('Proxima Nova Font.woff') format('woff');
font-style: normal;
}
tagname or .classname or #id{
font-family: Proxima;
}
If you are using .woff2 format then use below code
@font-face {
font-family: 'Proxima';
src: url('Proxima Nova Font.woff2') format('woff2');
font-style: normal;
}
tagname or .classname or #id{
font-family: Proxima;
}
Refer to the below-provided image.
Hope it helps, let us know if you need more help.
All the best,
Team CedCommerce
Hi @PageFly-Richard @Cedcommerce !
I tried this code - attached screenshot- but have not been able to see the font in my Typography theme setting. Please assist. Also, how do I confirm what is the tag name or .classname etc. if I want to change it throughout.
Many Thanks,
Vatsala
The best way to do is using free app: https://apps.shopify.com/any-font
The only option that helped me. The app is free and works like a charm. Thanks @arenacommerce
Unbelievable... This app is amazing. Why is it free??. Worked instantly and saved me a lot of time. THANK YOU!
Before we begin, you need to decide on the custom font you want to use. There are several online resources where you can download free or paid fonts, such as OnlineWebFonts. Ensure the font you choose aligns with your brand's image.
After you've selected your preferred font, proceed to download the font file. Ensure to verify that it's in the woff or woff2 format, then click on the "Free Download" button. The file typically comes as a .zip file. Once downloaded, extract this file.
Next, you need to update your CSS to include the new font.
<style> @font-face { font-family: 'Your Font Name'; src: url('{{ 'YourFontFileName.woff' | asset_url }}'); } h1, h2, h3, span.marquee-text { font-family: "Your Font Name" !important; } </style>
Replace 'Your Font Name' and 'YourFontFileName.woff' with the name of your font and the filename, respectively.
Source: https://shopifysignals.com/how-to-add-custom-font-to-shopify/
Hi @ParulK_21,
Take a look at this user-friendly video tutorial! It'll walk you through adding custom fonts to your Shopify store seamlessly, allowing you to integrate your favorite fonts effortlessly. By following this guide, you'll easily clarify any confusion and improve your store's appearance with personalized typography. Enjoy customizing your Shopify store fonts, just as I did with the help of this video! Below, you'll find an image showing the font changes before and after following the tutorial.
Thank you
Here is the simple solution to add custom fonts quickly.
It will appear in your settings.
Hi,
Here is a video tutorial to add custom font in your Shopify store. This video tutorial will tell you step by step process to add your custom font in your Shopify store as well as select the tags or complete Shopify store where this new font to be applied.
Feel free to reach out if more details are needed.
Thanks & Regards,
Vivek
Another free app with simple UI, that is very easy to use and has live font preview: https://apps.shopify.com/fontpro
To insert custom fonts into any website, including Shopify, you need to follow a few steps that involve both uploading or referencing the font and applying it via CSS. Here's a step-by-step guide:
Get the Font Files
You will need the font files in formats like .woff, .woff2, .ttf, or .otf. Make sure you have the appropriate formats for web usage, particularly .woff or .woff2 for faster loading.
upload the fonts in the content area in Shopify
add this CSS in Store Desing->theme->edit code->theme.liquid and insert this code.
@font-face {
font-family: 'YourCustomFont';
src: url('{{ "your-custom-font.woff" | asset_url }}') format('woff'),
url('{{ "your-custom-font.woff2" | asset_url }}') format('woff2');
font-weight: normal;
font-style: normal;
}
Replace 'YourCustomFont' with the name you want to use for the font, and ensure the file names match what you uploaded.
Now, you can use the custom font in your CSS wherever you want it to be applied, like this:
body {
font-family: 'YourCustomFont', sans-serif;
}
h1, h2, h3 {
font-family: 'YourCustomFont', serif;
}
You can also follow this video https://www.youtube.com/watch?v=t1JyoZSyo4k which guide you details
Thank you
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024