Wrong path used for Google font stylesheet
-
The new version breaks child themes, because it uses
get_stylesheet_directory_uri
instead ofget_template_directory_uri
for the Google fonts stylesheet in the functions.php.wp_register_style( 'google-fonts', get_stylesheet_directory_uri() . '/font/google/stylesheet.css', array(), null );
This results in a 404 for this file if you are using a child theme (like me).
- The topic ‘Wrong path used for Google font stylesheet’ is closed to new replies.