Why isn't my custom font displaying on mobile using the Colorblock theme?

Why isn't my custom font displaying on mobile using the Colorblock theme?

APEXWW
Visitor
1 0 1

I am using Colorblock theme. I used this code in my base.css file :

 

@font-face {
font-family: 'OCR-A BT';
src: url("OCR-A BT.woff2") format('woff2'),
url("OCR-A BT.woff") format('woff');
}

* { font-family: "OCR-A BT"!important; }

@font-face {
font-family: 'OCR-A BT';
font-weight: 300;
font-style: normal;
font-display: swap;
src: url('OCR-A BT.woff2') format('woff2'), url('OCR-A BT.woff') format('woff');
}

.page-title {
font-family: 'OCR-A BT', sans-serif;
}

 

its showing my font just fine on desktop but not on any mobile devices. 

 

I have uploaded the .woff & .woff2 fonts to the assets & files folders. 

 

My shop is : https://apexworldwide.shop

 

Replies 2 (2)

Kani
Shopify Partner
468 125 232

Hi @APEXWW 

 

It should be 

url({{ "OCR-A BT.woff2" | asset_url }}) format("woff2");
Hey!! ʕ ᵔᴥᵔ ʔ
Please click 'Like' and ' Accept as Solution' to encourage me to continue sharing my expertise. ♡
If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response. 🙂

KetanKumar
Shopify Partner
37598 3668 12156

@APEXWW 

oh sorry for that but your have missing some other font type 

TTF, OTF, WOFF, WOFF2, SVG 

please upload above type 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing