Hi,
I’ve been trying to upload a custom font for my site, hosted in my theme using this:
https://shopify.dev/docs/storefronts/themes/architecture/settings/fonts#custom-fonts
I copied this into the top of my base.css file:
@font-face {
font-family: “Helvetica Neue LT Std”;
src: url(“{{ ‘HelveticaNeueLTStd-BdCn.woff’ | https://cdn.shopify.com/s/files/1/0845/3521/4408/files/HelveticaNeueLTStd-BdCn.woff?v=1739634278 }}”) format(“woff”),
url(“{{ ‘HelveticaNeueLTStd-BdCn.woff2’ | https://cdn.shopify.com/s/files/1/0845/3521/4408/files/HelveticaNeueLTStd-BdCn.woff2?v=1739634278 }}”) format(“woff2”);
}
and this into the bottom of my theme.liquid file:
@font-face { font-family: "Helvetica Neue LT Std"; src: url("{{ 'HelveticaNeueLTStd-BdCn.woff' | [https://cdn.shopify.com/s/files/1/0845/3521/4408/files/HelveticaNeueLTStd-BdCn.woff?v=1739634278](https://cdn.shopify.com/s/files/1/0845/3521/4408/files/HelveticaNeueLTStd-BdCn.woff?v=1739634278) }}") format("woff"), url("{{ 'HelveticaNeueLTStd-BdCn.woff2' | [https://cdn.shopify.com/s/files/1/0845/3521/4408/files/HelveticaNeueLTStd-BdCn.woff2?v=1739634278](https://cdn.shopify.com/s/files/1/0845/3521/4408/files/HelveticaNeueLTStd-BdCn.woff2?v=1739634278) }}") format("woff2"); }These are the urls:
https://cdn.shopify.com/s/files/1/0845/3521/4408/files/HelveticaNeueLTStd-BdCn.woff2?v=1739634278
https://cdn.shopify.com/s/files/1/0845/3521/4408/files/HelveticaNeueLTStd-BdCn.woff?v=1739634278
Nothing is working… The urls are copied from the files in the Content - File folder.
Can someone point me in any helpful direction?