Home › Forums › WoodMart support forum › Font from TaypeKit › Reply To: Font from TaypeKit
ludniko
I just tried and it didn’t work, this is what I have on my child functions.php
<?php
/**
* Enqueue script and styles for child theme
*/
function woodmart_child_enqueue_styles() {
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘woodmart-style’ ), woodmart_get_theme_info( ‘Version’ ) );
}
add_action( ‘wp_enqueue_scripts’, ‘woodmart_child_enqueue_styles’, 1000 );
add_filter( ‘upload_mimes’, ‘woodmart_upload_mimes’, 100, 1 );
function woodmart_upload_mimes( $mimes ) {
$mimes[‘svg’] = ‘image/svg+xml’;
$mimes[‘svgz’] = ‘image/svg+xml’;
$mimes[‘woff’] = ‘font/woff’;
$mimes[‘woff2’] = ‘font/woff2’;
$mimes[‘ttf’] = ‘font/ttf’;
$mimes[‘eot’] = ‘font/eot’;
$mimes[‘svg’] = ‘font/svg’;
$mimes[‘woff’] = ‘application/x-font-woff’;
$mimes[‘ttf’] = ‘application/x-font-ttf’;
$mimes[‘eot’] = ‘application/vnd.ms-fontobject’;
}