All things Shopify and commerce
Hey!
I just had to update my website theme and need to change the font to a custom font that Shopify doesn't provide. I've looked at past questions and solutions but they all involve having the base.css or theme.css file in the assets folder which I don't have.
If anyone could help me solve this problem, that would be great!
Website: www.tms.racing
Hi,
This is Richard at PageFly - Shopify Advanced Page Builder app.
While Shopify doesn't have a direct option to upload custom fonts to its theme editor, there are a few workarounds to achieve this. The key is to use CSS to link your custom font file to your theme.
Here's a step-by-step guide:
1. Prepare Your Custom Font:
2. Add the Font to Your Theme:
Method 1: Using a Theme Kit:
Install Theme Kit: Follow the instructions to install Theme Kit on your local machine.
Clone Your Theme: Clone your Shopify theme to your local machine using Theme Kit.
Edit the Theme:
@font-face { font-family: 'MyCustomFont'; src: url('/assets/fonts/MyCustomFont.woff2') format('woff2'), url('/assets/fonts/MyCustomFont.woff') format('woff'); font-weight: 400; font-style: normal; }
Upload the Font File:
Push the Changes: Use Theme Kit to push the changes to your Shopify store.
Hoping my solution helps you solve your problem.
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.
Hi Richard!
Thank you for your response! Do you have another method I can use that doesn't involve the theme.scss.liquid file, because I don't have it on this theme?
Thank you!
Hey 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, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024