This tutorial shows you how to add custom fonts to your editor in WordPress.
There’s 4 steps you need to take after installing the Fonts plugin.
The 1st step is to load your custom fonts for use on the front end of your site:
The following example loads the Trash Hand custom font:
Is there a way to install a custom font to my editor by using a CSS editor plugin, instead of touching the CSS directly?
Thanks,
Carla
I think you could use the code in the 5th step if your plugin already loads the font as long as it’s loaded in the backend as well, otherwise, use the 4th and 5th steps.
I’ll try it – thanks!
Nice! Thanks.
Hi Brad,
A couple of questions after installing your plugin:
1. Is the code for steps 1 (front end) and 4 (back end) both going into the functions.php file in child theme root after //* Enqueue scripts and styles ?
2. with step 5 where is that going? somewhere in the fonts.php for your plugin I’ve loaded into my WP site?
Thanks in advance for any insight/clarification you can offer!
Victor
Hi Victor
All the PHP code goes into the end of your child themes functions file and the CSS goes in your child theme’s style.css file.