We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Add 3 custom fonts to my Shopify page

Solved

How can I add three custom fonts to my ecommerce page?

Felix_Ghys
Excursionist
29 0 6

Hi everyone, 

 

How do I add 3 custom fonts to my shopify page? I cannot seem to figure this one out. 

 

Thank you in advance! 

Best regards, 
Felix

Accepted Solution (1)
Abdosamer
Shopify Partner
1040 188 225

This is an accepted solution.

@Felix_Ghys  , using css font-style and font-size 

P {
  font-family : "TTnormsProExp";
  font-style:italic ;
  font-size: 29px;
}
Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work

View solution in original post

Replies 15 (15)

Abdosamer
Shopify Partner
1040 188 225

@Felix_Ghys , Did you upload the custom fonts to your shopify files?

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Felix_Ghys
Excursionist
29 0 6

Hi Abdosamer, 

 

Yes I uploaded them to my files. 

 

 

Abdosamer
Shopify Partner
1040 188 225

@Felix_Ghys , you can go to base.css and add the following code :

@font-face {
font-family: "Duly Noted NF W01 Regular";
src: url("https://cdn.shopify.com/s/files/1/0667/9389/8229/files/Duly_Noted_NF_W01_Regular.woff?v=1699650098") format("woff");

}

the name and the link here are just examples, you will enter the name of your font in the font-family and the url of your font, and for every font you will use the same format. 

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Felix_Ghys
Excursionist
29 0 6

Thank you! I cannot find the folder base.css, where can i find this one? 

Abdosamer
Shopify Partner
1040 188 225

@Felix_Ghys , can you share your store url to see if you have this file or not first?

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Felix_Ghys
Excursionist
29 0 6
Felix_Ghys
Excursionist
29 0 6

Here you have my store URL:

 

https://064a48-4.myshopify.com/

Abdosamer
Shopify Partner
1040 188 225

@Felix_Ghys , add the code to theme-index-min.css.

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Felix_Ghys
Excursionist
29 0 6

I added this to the theme.liquid file: 

 


@font-face {
font-family: "TTnormsProExp";
src: url("https://cdn.shopify.com/s/files/1/0783/9137/8245/files/TTNormsProExp-XBd.woff2?v=1700691462") format("woff");

}

@font-face {
font-family: "FilsonPro";
src: url("https://cdn.shopify.com/s/files/1/0783/9137/8245/files/FilsonPro-Book.woff2?v=1700691461") format("woff");

}

@font-face {
font-family: "Abnorm";
src: url("https://cdn.shopify.com/s/files/1/0783/9137/8245/files/Abnorm.woff2?v=1700690403") format("woff");

}

 

 

Abdosamer
Shopify Partner
1040 188 225

@Felix_Ghys , all your font file are woff2 not woff so you should change the format format from woff to woff2.

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Felix_Ghys
Excursionist
29 0 6

So I added the code to the theme-index-min.css. file, but cannot find the fonts in the drop down menu when I edit the website typography. Or is there another place I can find the fonts? 

 

This is the code i added: 

 


@font-face {
font-family: "TTNormsProExp-XBd";
src: url("https://cdn.shopify.com/s/files/1/0783/9137/8245/files/TTNormsProExp-XBd.woff2?v=1700691462") format("woff2");

}

@font-face {
font-family: "FilsonPro-Book";
src: url("https://cdn.shopify.com/s/files/1/0783/9137/8245/files/FilsonPro-Book.woff2?v=1700691461") format("woff2");

}

@font-face {
font-family: "Abnorm";
src: url("https://cdn.shopify.com/s/files/1/0783/9137/8245/files/Abnorm.woff2?v=1700690403") format("woff2");

}

 

 

Abdosamer
Shopify Partner
1040 188 225

@Felix_Ghys , you can add them through css , for example:

P {
  font-family : "TTnormsProExp";
}
Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Felix_Ghys
Excursionist
29 0 6

Alright very nice, and how can I modify the font size and type? What do I change in the code? 

 

Your help is very much appreciated 🙂 Thank you so much. 

Abdosamer
Shopify Partner
1040 188 225

This is an accepted solution.

@Felix_Ghys  , using css font-style and font-size 

P {
  font-family : "TTnormsProExp";
  font-style:italic ;
  font-size: 29px;
}
Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Felix_Ghys
Excursionist
29 0 6

Thank you very much for your help again. Amazing!