I just learnt about creating child themes from the Codex , it says to add
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
and
function theme_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 )
);
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
in my child theme's functions.php
file but it did not address the issue when our parent theme has more then one style sheet(.css files
). (In my case twenty-fourteen theme has two style.css
and rtl.css
) and two more in /css folder named editor-style.css
and ie.css
So what I have to change in the code above to load both stylesheets
.
I have gone through this question but it did not address my issue.