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

Why some WordPress Themes have a style.css file with no styles (only with the meta required code)?

Hello,

I would like to know why some WordPress Themes have a style.css file with no styles (only with the meta required code)? and they have all the styles inside a css folder.

Something like this: style.css >>> with the meta required code css/styles.css >>> with all the styles

2 Answers

Casey Ydenberg
Casey Ydenberg
15,622 Points

WordPress requires that meta info at the beginning of style.css file located in the main template folder. When you have multiple stylesheets however it just become easier to keep them all in a separate css folder and just use the main style.css to placate the WordPress Beast.

So, organization is the main purpose of this practise?

Thanks!

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

Correct. Some people choose to follow their own or other framework asset organization practices rather than load it all in the style.css.