How to add a custom font to Divi
How to add a custom font to Divi
I am going to try and show you how to add a custom font to Divi
The code I demonstrated before using the plugin to allow font mime types needs to be added in the functions.php file of your theme is shown below
Code for functions.php
add_filter('upload_mimes', 'add_custom_upload_mimes');
function add_custom_upload_mimes($existing_mimes) {
$existing_mimes['ttf'] = 'application/x-font-ttf';
$existing_mimes['otf'] = 'application/x-font-otf';
return $existing_mimes;
}
0 Comments