Hi,
I've tried following those instructions, but it doesn't appear to have helped. To be specific I have done the following in order -
1) Installed and activated an x-child theme
2) Used cPanel FileManager to create a sub-folder called fonts in [site]/public_html/wp_content/themes/x-child
3) Edited the file [site]/public_html/wp_content/themes/x-child/functions.php to contain the below:
// Additional Functions
// =============================================================================
add_filter('upload_mimes', 'add_custom_upload_mimes');
function add_custom_upload_mimes($existing_mimes) {
$existing_mimes['woff'] = 'font/woff';
$existing_mimes['woff2'] = 'font/woff2';
$existing_mimes['ttf'] = 'application/x-font-ttf';
$existing_mimes['svg'] = 'image/svg+xml';
$existing_mimes['eot'] = 'application/vnd.ms-fontobject';
return $existing_mimes;
}
Tried to upload a woff via the custom fonts section of the font manager in X - Options
That didn't work. Still couldn't upload the fonts - still get the security error.
I also tried using the cPanel file manager to upload the font to the font directory - and that worked, but the mime type was not set to font/woff and it wasn't available to select in the X-Options font manager.
What am I doing incorrectly?
Thanks!