Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 90,705 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 :)