How to add a custom font in Dawn without a Theme.css.liquid?

I have tried many of the suggestions in videos and different tutorials as well as suggestions in some of these chats, but nothing is working. When inserted by the :root, it removes all the color and changes none of the fonts. I don’t know what to do.

@LitExtension You asked me to create a new post and I haven’t gotten a response yet. Did I need to tag you?

Hi @eeveefox ,

Please send your site and if your site is password protected, please send me the password. I will check it.

Hi @eeveefox ,

Please follow the steps:

  • Step 1: Upload font in Assets.

  • Step 2: Then you go to the file layout/theme.liquid and add the code:

Code:

@font-face {
font-family: 'fontname';
src: url('{{ 'fontname.woff' | asset_url }}') format('woff'),
font-weight: normal;
font-style: normal;
font-display: swap;
}

At the end you just need to get fontname, it will work fine.
Hope it helps!

@LitExtension It’s still not working, I don’t know what I’m doing wrong.

Hi @eeveefox ,

Please send your site and if your site is password protected, please send me the password. I will check it.

Hi @eeveefox ,

I checked and didn’t find the URL, did you upload the font at Assets and get it just like my instructions?


@LitExtension

Hi @eeveefox ,

Please move code here:

Code:


Hope it helps!

It’s still now working :cry: