how to load other child theme css files
-
Hi guys how do i force another css files to load from child theme.
i have another css in the parent theme in assets\css\shop.css
this is what i currently have in my function.php in the child folder<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
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')
);
}// END ENQUEUE PARENT ACTION
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘how to load other child theme css files’ is closed to new replies.