child theme multiple css files
-
I have created a child theme. Right now functions.php file looks like that:
<?php add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
?>There is more stylesheets that I want to include in the child theme:
bootstrap.min.css
default.cssI tried to add:
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/bootstrap.min.css’ );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/default.css’ );but all I got was errors and the page did not even dispay :/
How should the code look like?
- The topic ‘child theme multiple css files’ is closed to new replies.