It can be done. You have to upload font files and apply related CSS code for the home page heading only.
To upload the custom fonts you can refer to the following URL.
https://support.weareunderground.com/article/272-how-do-i-add-a-custom-font-to-my-theme
Thanks!
Thanks! But do I need to upload the font if it´s already in Shopify's font-library? I just want to change the font in the headers, not install a new one. Can I find it in the code?
If you are using existing fonts then no need to upload. For the home page, you have to write like the following.
.template-index h1, h2{
font-family: "your font name";
}
Hope this helps.
Thanks!
Yes, assets/theme.scss.liquid file. Add the above code at the bottom of that file.
Thanks!
Hmmm, it doesn't work.
.template-index h1, h2{
font-family: "vala_n4"; }
I added it in file theme.css (Assets).
I also have a file named theme.liquid in Layout - should I edit that too?
Sorry, just started my Shopify career...
/Elin
If you can provide me URL then I can give you the exact solutions. For your information no need to edit theme.lqiuid file. You need to edit assets/theme.scss.liquid OR theme.css if you have.
Thanks!
User | Count |
---|---|
560 | |
215 | |
129 | |
82 | |
49 |