Assign My Own Fonts to my site

How can I assign my own font to the site.
1 font for the menu
1 font for the text
1 font for the titles of each page

I have the font files, where should I upload the files to?
How do I make this work?

Thanks

Hi There,

You can upload your custom fonts use the Fonts Manager option (it’s under Theme Options > Gear Icon > Fonts):

By default, WordPress doesn’t allow you to upload the custom fonts file. You have to add this custom code under functions.php file locates in your child theme:

add_filter('upload_mimes', 'add_custom_upload_mimes');
function add_custom_upload_mimes($existing_mimes) {
	$existing_mimes['otf'] = 'application/x-font-otf';
	$existing_mimes['woff'] = 'application/x-font-woff';
	$existing_mimes['ttf'] = 'application/x-font-ttf';
	$existing_mimes['svg'] = 'image/svg+xml';
	$existing_mimes['eot'] = 'application/vnd.ms-fontobject';
	return $existing_mimes;
}

For more information, please take a look at this article:

Hope it helps :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.