Thanks! The font is Source Sans Regular 3. I’m trying to upload a custom local version to ensure it’s GDPR-compliant. This is an example page - the breadcrumb text should be in that font:
If I check the computed font, it’s shown correctly, but plugins like FontNinja show it’s actually the sans-serif version.
I added your code and it unfortunately didn’t change anything. We’re using EComposer as a page builder, by the way.
Shopify does not run liquid code inside .css assets.
That’s why your url({{‘MyFont.otf’ | file_url }}) stays exactly as it is.
And do not upload your fonts in Assets – they will get corrupted.
My recommended approach is to add a “Custom liquid” section to the Footer section group and put your code (wrapped with <style> and </style> of course) there.
Alternatively, you can edit the layouts/theme.liquid and this would give exactly the same result with the drawback of being less compatible with theme updates.
Finally, you may copy actual file URLs in your Files (there is a button for this) and use them instead of liquid code in base.css.
This did it! I previously tried using the full file URL in the CSS, and it didn’t work, so I tried various other approaches until I got to this point. Using the file_url variable and just including it in the theme.liquid file finally solved everything.