wasim
November 15, 2019, 7:46am
1
Hey Guys,
I wanted to add new font and it is in .ttf file. I have add into the child theme >> out directory >> font and then I went to base.tpl. There I found “base_style” and “base_fonts”. Something like below which is commented…
[{block name="base_fonts"}]
<link href='https://fonts.googleapis.com/css?family=Raleway:200,400,700,600' rel='stylesheet' type='text/css'>
<!-- <link href='font/helveticaneue.ttf' rel='stylesheet' type='text/css'> -->
[{/block}]
But it is not working…Is this the right way?? Or I should follow some more steps…
Thanks
No, it’s not. You have to use absolute path.
wasim
November 15, 2019, 11:14am
3
Is it something like below??
`<link href='out/child_theme_name/src/fonts/helveticaneue.ttf' rel='stylesheet' type='text/css'>`
or
'<link href='../fonts/helveticaneue.ttf' rel='stylesheet' type='text/css'>`
wasim
November 15, 2019, 11:15am
4
<link href='../fonts/helveticaneue.ttf' rel='stylesheet' type='text/css'>
wasim
November 15, 2019, 12:01pm
5
Hello Mr. Vanilla,
I found out the solution and it is working for me. I missed creating css file for my font.ttf
Thanks
1 Like
system
Closed
November 14, 2020, 12:06pm
6
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.