Site logo

Archived topic

Custom Font not Working

6 replies · Started by Amos on November 25, 2017

Viewing posts 1–7 of 7

Thank leo but this is not what i need.
i want to use the font on my server.
i know how to add more google font to the list - this is not what i need.
"rubik" it just an example it is not working with any font - not only google font.

Hmm, what you have shown looks like it should work.

Can you try inputing the full URL to the font file in your CSS, just to make sure file is being reached?

i try to change it to this:

@font-face {
	font-family: 'Rubik-Regular';
	src:url('/wp-content/themes/generatepress_child/fonts/rubik-regular.ttf')  format('truetype'),
}

but still not working...

Ok i fixed this issue
the problem was :
i change this:
format('truetype'),
to :
format('truetype');

and change this:
fonts/rubik-regular.ttf'
to :
fonts/Rubik-Regular.ttf'

Glad you found the solution!

This archived topic is closed to new replies.