Replies: 1
I just realised that the client isn’t see the fonts as intended.
I didn’t notice because I have the fonts installed locally.
Have I done something wrong with the enqueue?
This is the top of my functions.php:
function my_theme_enqueue_styles() {
$parent_style = 'chaplin-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
I could add the google font imports to my child stylesheet, but I just wanted to be sure something else wasn’t wrong.
Thanks