FROM CACHE - en_header

Adding Custom Font to (Baseline Theme)

1015
Tourist
9 0 1

Hello,

 

I am using the Baseline theme for my website 

https://treeing-us.myshopify.com/

 

& I have 3 custom fonts that I want to use for the website.

I currently have them uploaded in my Assets folder for the Baseline theme.

What actions do I have to take next to apply the fonts to replace the current fonts?

 

the password is trauff

Replies 6 (6)
Ecommpremium
Shopify Partner
446 36 82

hi @1015  thanks for writing.

To get started, you will first need to upload the font into the Assets folder of your theme.

  1. To get to the Assets folder of your theme, navigate to your Shopify dashboard. From here, go to: Online Store > Actions > Edit Code

  2. Scroll down till you find the Assets folder and click add a new asset, select your font file and hit upload asset.

Installing your font in your theme

Next up: telling your theme that it can use the font file that you have uploaded.

  1. Go to your theme's main CSS file (usually named styles.scss.liquid, theme.scss.liquid, or another variation of this). This file can be found in the Assets folder of your theme - navigate to the bottom of this file to add new code into your theme.

  2. Add the code below, replacing highlighted elements of the code with actual data.
    Font name > the name of the font, if the font has more than one word in it's name it will need "quotation marks" - these will also be needed when inserting into Shogun.
    Filename > the name of the file that was just uploaded to your theme including the file extension, for example, cosmic_sans_bold.ttf.
    Format > the format of the font that was uploaded, for example, for Athena.ttf this would be "TrueType".

 

 

@font-face {
    font-family: "Font name";
    src: url({{ "Filename" | asset_url }}) format("Format");
}

 

 


Available font formats: "woff", "woff2", "truetype", "opentype", "embedded-opentype" and "svg".

- Did we solve your issue? Like & Mark As Solution to help the community
- SKYPE: ahsanaliawan
- 300+ Video Tutorials
-Website
1015
Tourist
9 0 1
     
@font-face {
    font-family: 'treeing_boldbold';
    src: url('treeingbold-001-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}



@font-face {
    font-family: 'treeing-skinnyregular';
    src: url('treeing-skinny-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

I added this to "theme.css" in Assets folder but nothing is happening.Screen Shot 2021-11-05 at 11.02.08 AM.png

 

These are the fonts I uploaded.

 

Ecommpremium
Shopify Partner
446 36 82

please go to settings of your theme customization and in typography do you found these fonts! @1015 

- Did we solve your issue? Like & Mark As Solution to help the community
- SKYPE: ahsanaliawan
- 300+ Video Tutorials
-Website
1015
Tourist
9 0 1

I don't see them in the theme typography. Can you please help me 😞

ila1
New Member
1 0 0

Did you end up solving the problem? I'm having the same issue. 

1015
Tourist
9 0 1

hey, no i didnt. let me know if you do find a solution 😞