Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

multiple stylesheet files in Child theme

Hello. I wrote codes as follows in functions.php.

Function wp_schools_enqueue_scripts() {
 functions.php. wp_register_style( ‘childstyle’, get_stylesheet_directory_uri() . ’/style.css’ ); wp_enqueue_style( ‘childstyle’ ); 
} 
add_action( ‘wp_enqueue_scripts’, ‘wp_schools_enqueue_scripts’, 11);

But there are lots of stylesheets in Bridge theme. Should I write down other stylesheets too?For example if another style sheet, “xxxx.css” is in css folder then I guess the code should look like this.

Function wp_schools_enqueue_scripts() { 
wp_register_style( ‘childstyle’, get_stylesheet_directory_uri() . ’/style.css’ ); wp_enqueue_style(‘childstyle’, get_stylesheet_directory_uri() . ’css/xxxx.css’ ); 
}
add_action( ‘wp_enqueue_scripts’, ‘wp_schools_enqueue_scripts’, 11);

Should I also download and upload xxxx.css file in the child theme? Please help me. Thanks.