Load multiple CSS for child
-
Hi
When using child theme for the store I simply add this to functions.php:
function child_enqueue_styles() {
$parent_style = ‘parent-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 ) );But you have multiple CSS files in css folder. One which is responsible for responsive version of the page – responsive.css
So the question is generic for your themes: how to load multiple files to override the parent?
I tried to add:
wp_enqueue_style( ‘responsive’, get_stylesheet_directory_uri() . ‘/css/responsive.css’);
But this doesnt work ?? Could you help?
- The topic ‘Load multiple CSS for child’ is closed to new replies.