Shopify themes, liquid, logos, and UX
Hello, I'm trying to use a custom font (Diavlo) on my Shopify store, but it’s not displaying correctly on my Sense theme. I’ve successfully applied it on my PageFly landing page, but it doesn’t appear on the product page built with Sense.
Here’s what I’ve tried so far:
1. Added the @font-face rule in the CSS file:
@font-face {
font-family: 'Diavlo';
src: url('https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff?v=1741058115') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
body {
font-family: 'Diavlo', sans-serif !important;
}
2. Added a preload link in theme.liquid:
<link rel="preload" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff?v=1741058115" as="font" type="font/woff" crossorigin="anonymous">
3. Cleared cache and tested in incognito mode.
4. Checked the browser console and found WebSocket errors and warnings about font preloading not being used.
Despite all these attempts, the font still doesn’t apply to my Sense theme. Any idea what could be causing this?
Solved! Go to the solution
This is an accepted solution.
In pagefly they add so woff2 is missing
@font-face {
font-family: 'Diavlo BLACK II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_BLACK_II_37.woff2?v=1709704761") format("woff2");
font-display: swap;
}@font-face {
font-family: 'Diavlo MEDIUM II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff2?v=1709704762") format("woff2");
font-display: swap;
}@font-face {
font-family: 'Diavlo LIGHT II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_LIGHT_II_37.woff2?v=1709704762") format("woff2");
font-display: swap;
}
h1 {
font-family: "Diavlo_MEDIUM_II_37 ", sans-serif!important; /* Exemple d'utilisation */
}
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_BLACK_II_37.woff2?v=1709704761" type="font/woff2" crossorigin="">
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff2?v=1709704762" type="font/woff2" crossorigin="">
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_LIGHT_II_37.woff2?v=1709704762" type="font/woff2" crossorigin="">
That is why i addded in your site base.css bottom
@font-face {
font-family: 'Diavlo BLACK II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_BLACK_II_37.woff2?v=1709704761") format("woff2");
font-display: swap;
}@font-face {
font-family: 'Diavlo MEDIUM II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff2?v=1709704762") format("woff2");
font-display: swap;
}@font-face {
font-family: 'Diavlo LIGHT II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_LIGHT_II_37.woff2?v=1709704762") format("woff2");
font-display: swap;
}
h1 {
font-family: "Diavlo BLACK II 37", sans-serif!important; /* Exemple d'utilisation */
}
and also in layout/theme.liquide line 266
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_BLACK_II_37.woff2?v=1709704761" type="font/woff2" crossorigin="">
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff2?v=1709704762" type="font/woff2" crossorigin="">
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_LIGHT_II_37.woff2?v=1709704762" type="font/woff2" crossorigin="">
and now your font work
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
Hello @Ilyes3,
It looks like you've done most of the right steps, but here are a few things to check and try:
body, h1, h2, h3, h4, h5, h6, p, a, span, div {
font-family: 'Diavlo', sans-serif !important;
}
<style>
@font-face {
font-family: 'Diavlo';
src: url('{{ "Diavlo_MEDIUM_II_37.woff" | asset_url }}') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
</style>
Run this in your browser console and see if the font updates:
document.fonts.ready.then(() => console.log('Fonts loaded!'));
Let me know if this helps!
Best,
Tracy from Kudosi Reviews
Hello, @Ilyes3
There may be different cases causing the issue. The font might be loading correctly, but some CSS could be overriding the custom font, leading to the problem. If you share the store URL, I can check and help you identify the issue.
Thank you!
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
Hello @Arif_Shopidevs,
What do you think ? "https://meswo.fr/products/meswo-la-brosse-a-dents-naturelle-en-bambou-avec-embouts-de-siwaks-interch..."
Here is the solution for you.
In your theme or section a css written for font which is wrong It will be
#shopify-section-template--24093498769675__main h1 {
font-family: "Diavlo", sans-serif;
}
Right now it is set "Diavlo Bold", sans-serif
If you correct this it will show like this.
I think this is what you are looking
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
I don't how you did it but i'm still struggling. Can you please explain exactly how to do it ? Im not a dev
Hello, If you want can do to this in your site. You can send us collaboration access in personal messasge.
Or got to your theme->edit ->theme.css and then put at the end of the page it will solve it.
#shopify-section-template--24093498769675__main h1 { font-family: "Diavlo", sans-serif;!important }
Your font name is wrong , the font is actually Diavlo you declare other name. That is why the problem occured.
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
Ok for the collaboration access, how i message you ?
Send you PM
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
Please check all font has two type woff and woff2 , woff2 is must need.
@font-face {
font-family: Poppins;
font-weight: 500;
font-style: normal;
font-display: swap;
src: url("//meswo.fr/cdn/fonts/poppins/poppins_n5.25334cd7ff48c81cfd51a6bc5a81d92a1b4d4501.woff2?h1=YmE5MGUyLTMuYWNjb3VudC5teXNob3BpZnkuY29t&h2=bWVzd28uZnI&hmac=b1f86ecd8f34f519318bbb701735409a13f27d1c0378a4447c03028f3b82ac10") format("woff2"),
url("//meswo.fr/cdn/fonts/poppins/poppins_n5.fc8eae64d8f1b5d2b8c42b45ddc0749aff4750a6.woff?h1=YmE5MGUyLTMuYWNjb3VudC5teXNob3BpZnkuY29t&h2=bWVzd28uZnI&hmac=94e08a0da0ee7d95a2213f3615aadbf5bb4b278923f1d9fe0ee9070927bf8da6") format("woff");
}
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
This is an accepted solution.
In pagefly they add so woff2 is missing
@font-face {
font-family: 'Diavlo BLACK II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_BLACK_II_37.woff2?v=1709704761") format("woff2");
font-display: swap;
}@font-face {
font-family: 'Diavlo MEDIUM II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff2?v=1709704762") format("woff2");
font-display: swap;
}@font-face {
font-family: 'Diavlo LIGHT II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_LIGHT_II_37.woff2?v=1709704762") format("woff2");
font-display: swap;
}
h1 {
font-family: "Diavlo_MEDIUM_II_37 ", sans-serif!important; /* Exemple d'utilisation */
}
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_BLACK_II_37.woff2?v=1709704761" type="font/woff2" crossorigin="">
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff2?v=1709704762" type="font/woff2" crossorigin="">
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_LIGHT_II_37.woff2?v=1709704762" type="font/woff2" crossorigin="">
That is why i addded in your site base.css bottom
@font-face {
font-family: 'Diavlo BLACK II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_BLACK_II_37.woff2?v=1709704761") format("woff2");
font-display: swap;
}@font-face {
font-family: 'Diavlo MEDIUM II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff2?v=1709704762") format("woff2");
font-display: swap;
}@font-face {
font-family: 'Diavlo LIGHT II 37';
src: url("https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_LIGHT_II_37.woff2?v=1709704762") format("woff2");
font-display: swap;
}
h1 {
font-family: "Diavlo BLACK II 37", sans-serif!important; /* Exemple d'utilisation */
}
and also in layout/theme.liquide line 266
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_BLACK_II_37.woff2?v=1709704761" type="font/woff2" crossorigin="">
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_MEDIUM_II_37.woff2?v=1709704762" type="font/woff2" crossorigin="">
<link rel="preload" as="font" fetchpriority="low" href="https://cdn.shopify.com/s/files/1/0709/9170/8427/files/Diavlo_LIGHT_II_37.woff2?v=1709704762" type="font/woff2" crossorigin="">
and now your font work
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
Hi @Ilyes3
I checked your homepage and found this font in the code:
Font-family: "Diavlo MEDIUM II 37"
Here’s a screenshot.
Could you confirm if this is correct?
If so, here’s the CSS code:
.product__title h1 {
font-family: "Diavlo MEDIUM II 37" !important;
}
Result:
Thank you for your response but it didn't work unfortunately
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025