Tagged: custom fonts
Hi, whenever i try to upload a font with the Custom Font Manager (Import/Export) i get a general font name:
Font: MACOSX ( font-family: -macosx )
normal: 400
And the font doesn’t work.
I’ve tried with my fonts (with ttf and woff generated by FontSquirel) and with fonts downloaded from Google Fonts (ttf).
https://s33.postimg.cc/9m8fttn2n/Screen_Shot_2018-07-27_at_17.07.15.png
https://s33.postimg.cc/aoimcddlr/Screen_Shot_2018-07-27_at_17.07.37.png
Any idea?
Hey helderluis,
Have you referred and followed the directions in our doc:
Best regards,
Jordan Shannon
YES! Uploaded zip archives with nothing more than a font file (ttf) in it.
Hi,
You cculd upload the font directly to the theme root and just point to it directly there as opposed to going through the WordPress direct upload method.
Best regards,
Jordan Shannon
Do you mean through CSS?
I just upload a font here and it doesn’t show up in the font menu:
/helderluis.com/wp-content/themes/enfold/Preahvihear.ttf
/helderluis.com/wp-content/themes/helderluis/Preahvihear.ttf
Hi,
Yes via css, or through linking to the font in your header?
Best regards,
Jordan Shannon
OK, in that case can you give me the best css code for targeting the headers and body?
I once got it in some post here in this support forum.
Hi,
The font is not from Google. Please note that you can only upload Google Fonts when using the Custom Font Manager and nothing else. Use the @font-face rule for different fonts.
// https://www.w3schools.com/cssref/css3_pr_font-face_rule.asp
Best regards,
Ismael