I am using two custom fonts that I have uploaded into both my Assets and Files sections on Shopify. For some reason the fonts show up on my own desktop, but not on other devices. I have tried solutions posted on similar questions but none of them are working. My fonts are Sunliner Revival and Urbanist – I believe I have gotten Sunliner (headings) to work from copying code on other similar questions/answers, but I can’t get Urbanist (body copy) to work.
My store url is tinyrooaustralia.com.au. Password is ‘tinyroo*!’
I can see how frustrating it is when your custom fonts work on one device but not on others, it’s a common issue but totally fixable. Let’s break it down and get everything working perfectly for Sunliner Revival and Urbanist on all devices.
Why This Happens
Custom fonts can behave oddly due to:
Incorrect font file formats: Different browsers support different formats (e.g., .woff, .woff2, .ttf).
Improper font-face declaration: If your CSS isn’t set up to handle multiple formats or isn’t linked correctly, the fonts might not load.
Cache issues: Sometimes changes don’t reflect on other devices because they are loading an older version of your site.
Steps to Fix the Issue
- Check Your Font Files Ensure you’ve uploaded the correct formats. The most browser-compatible formats are:
.woff and .woff2 (modern and widely supported)
.ttf (fallback for older browsers)
.eot (rarely needed, but handy for Internet Explorer)
- Upload Fonts Correctly
Assets Folder: Upload your font files here (this is where Shopify expects them).
Ensure they’re named correctly (e.g., Urbanist-Regular.woff2) for easy reference.
- Add @font-face Rules in CSS In your theme’s theme.liquid or base.css, add the following code:
Clear your browser cache and test the site on an incognito window or other devices.
Please follow these steps, and let me know if everything now working fine. In case not, I’ll have to look at the code and I’d be needing your collaborator code to send you the request.
Hi @Anonymous I think I found your problem. Your @font-face declarations for Urbanist have only the filenames: “Urbanist-Italic-VariableFont_wght.woff” and “Urbanist-VariableFont_wght.woff2”. While your declaration for Sunliner Revival has the full path: “/cdn/shop/files/SunlinerRevival.woff”. Everything else seems in order, so I think if you add the full paths to Urbanist, they should start working.
Thanks so much for your detailed reply. I believe I have followed all your steps — I’ve uploaded both Sunliner and Urbanist in woff, woff2 and ttf to Assets, copied your code and put my exact file names in, however it still doesn’t seem to be working, I don’t know if I’m doing something wrong! I have also cleared cache and tested again with no luck.
Please feel free to have a look at the code, my collaborator code is 8367. I would appreciate this a lot! Thanks again for your help.