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

CSS

Tom Nunn
Tom Nunn
16,333 Points

In my Project I need style.css to be in the root of the folder and not in a separate CSS Directory.

How would you go about specifying where the style.css will go in our project, as I'm relating this to a WordPress site - I need the style.css to be in the root of the Theme Folder and not in a separate CSS Directory.

Is there a way to do this with the gem method or would I need to use an app like Gulp or Grunt?

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Wouldn't it be as simple as simply linking it as "style.css"?

All links to CSS files are relative to the location of the linked file. header.php, index.php, index.html, etc so you simply use style.css as the value as it's in the same directory.

Simply enqueue the file in your functions.php (which should also be in the root directory) accordingly.

Hope this helps :)