Hello,
I am building a website in Hebrew (RTL) and I find that when I change the font under the font picker they do not change my Hebrew writing.
I wanted to add a custom google font which works on Hebrew but am not sure where in the code to change this / other threads I see about this are asking me to change code which I do not see.
Anyone have any experience in doing this/can explain to meow to do it?
Thank you!
Yes, you can do easy to upload your custom font
1. Go to Online Store->Theme->Edit code
2.Asset->/theme.scss.liquid->upload your custom font all font tyep = TTF, OTF, WOFF, WOFF2, SVG
3. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
@font-face {
font-family: 'Montserrat-Regular';
src: url('{{ 'Montserrat-Regular.eot?' | asset_url }}');
src: url('{{ 'Montserrat-Regular.eot??#iefix' | asset_url }}') format('embedded-opentype'),
url('{{ 'Montserrat-Regular.woff' | asset_url }}') format('woff'),
url('{{ 'Montserrat-Regular.ttf' | asset_url }}') format('truetype'),
url('{{ 'Montserrat-Regular.svg#Montserrat-Regular' | asset_url }}') format('svg');
font-weight: normal;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: antialiased;
}
can you please just change font name, for example, Montserrat-Regular to your custom font name
Hello,
Thank you for the reply!
Would I need to download all of the files from a font first? and then when uploading I just simply type as you typed but change Monserrat to a different name or I need to manually upload something? like where it says asset url?
Thank yoU!
Shelly
Yes, current this
please flow above step
User | Count |
---|---|
565 | |
208 | |
121 | |
82 | |
44 |