-
AuthorPosts
-
June 3, 2016 at 10:51 am #642492
Hi, so I need to add my webfonts served from https://www.typotheque.com/webfonts/tutorial
Preferably to include them in font list.
I searched but only found the possibility to add more google fonts. Please help.June 3, 2016 at 11:37 am #642503Hi typeheaven!
Please see – http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/
Best regards,
YigitJune 3, 2016 at 11:40 am #642506Hi,
Sorry this is not what I am looking for. I don’t want to host my fonts, using typotheques served solution.
AndrejJune 3, 2016 at 12:36 pm #642525Hi!
Do you have a license key that they mention in the link you posted? If you have you can change the link provided by them and enqueue by referring to this link – https://developer.wordpress.org/reference/functions/wp_enqueue_style/
Regards,
YigitJune 3, 2016 at 12:53 pm #642528Yes I do have the key.
Can you be more specific please? Should I make a child theme and use this as a function?
Thanks.June 3, 2016 at 1:14 pm #642531Hey!
Please add following code to functions.php file (preferably into your child theme’s to avoid having it overwritten when you update the theme) in Appearance > Editor
function enqueue_typotheques() { wp_enqueue_style( 'Typotheques', 'https://wf.typotheque.com/WF-xxxxxx-xxxxxx' ); } add_action( 'wp_enqueue_scripts', 'enqueue_typotheques' );then you should replace ‘WF-xxxxxx-xxxxxx’ with your license key and use your custom font on your elements using following code in Quick CSS in Enfold theme options under General Styling tab
p { font-family:"Fedra Sans Book"; }Cheers!
YigitJune 22, 2016 at 11:34 am #652019Hi,
Thank you, this worked.
AndrejJune 22, 2016 at 1:34 pm #652059Hi!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Adding webfont service other than Google’ is closed to new replies.
