Child Theme CSS file loading twice
-
The same CSS file is appearing in dev tools twice. The codex warned about this but I can’t see where I’ve gone wrong
function storefrontchild_enqueue_styles() { $parent_style = 'storefront-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme. 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', 'storefrontchild_enqueue_styles' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Child Theme CSS file loading twice’ is closed to new replies.