Title: style.css file in a folder
Last modified: August 19, 2016

---

# style.css file in a folder

 *  Resolved [Gaurav](https://wordpress.org/support/users/gauravofindia/)
 * (@gauravofindia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/)
 * Hi Guys,
 * Can someone guide if i move the style.css in a folder from the root i am unable
   to activate the theme from the admin.
 * So what code should i add to header.php so it picks up the style.css and activate
   the theme properly.
 * As per Theme Development Standards wordpress requires that the style.css file
   should be on the root we had to move the file on the root.
 * As you know in wordpress the style.css file in on the root.
 * Gaurav

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948716)
 * The Theme’s style.css file _must_ be in the _Theme root_ directory. So, for “
   My Test Theme”, the root folder is:
 *     ```
       \wp-content\themes\my-test-theme\
       ```
   
 * And the style.css file _must_ be here:
 *     ```
       \wp-content\themes\my-test-theme\style.css
       ```
   
 *  Thread Starter [Gaurav](https://wordpress.org/support/users/gauravofindia/)
 * (@gauravofindia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948733)
 * So Chip, there is no way i can have the style.css in a folder?
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948735)
 * Not as far as I know.
 * What are you trying to accomplish, that you need/want to move the style.css file
   into a sub-folder from the Theme root?
 *  Thread Starter [Gaurav](https://wordpress.org/support/users/gauravofindia/)
 * (@gauravofindia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948737)
 * Yes, in one of my project the client is asking for this.
 * That the style.css should be in a folder and not on root.
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948738)
 * To what “root” are you referring: the _Theme_ root, or the _site/WordPress_ root?
 *  Thread Starter [Gaurav](https://wordpress.org/support/users/gauravofindia/)
 * (@gauravofindia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948739)
 * When we try to move the css file the theme does not activate.
 * From what i know the style.css should on the root of the theme folder, otherwise
   the theme will not activate.
 *  Thread Starter [Gaurav](https://wordpress.org/support/users/gauravofindia/)
 * (@gauravofindia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948740)
 * By root i mean the theme folder root.
 * for e.g my theme folder name is “abc”
 * and i wan that the style.css should be in a folder named “css”
 * So the css folder will be in me “abc” folder.
 *  Thread Starter [Gaurav](https://wordpress.org/support/users/gauravofindia/)
 * (@gauravofindia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948741)
 * So the folder will be:-
 * \wp-content\themes\abc
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948742)
 * Why is your client asking for this?
 * Again: as far as I know, the style.css file _must_ be in the Theme root.
 * You can put _other_ CSS files into a sub-folder, but not style.css.
 *  Thread Starter [Gaurav](https://wordpress.org/support/users/gauravofindia/)
 * (@gauravofindia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948743)
 * ok, will do that and import all the other css files in to style.css.
 * Thanks for the help
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948744)
 * i agree, you must have the style.css file with the neccessary theme information
   in the theme root folder;
    however, imho, and as [@chip](https://wordpress.org/support/users/chip/)
   Bennett already said, you can have as many other folders with css files as you
   like, and there is no reason why these css files cannot be named style.css as
   well;
 * example:
    /wp-content/themes/abc/style.css (this is the neccessary style.css 
   to get the theme recognized)
 * /wp-content/themes/abc/css_folder/style.css
    /wp-content/themes/abc/css_folder/
   custom.css
 * as long as you link these css files properly from the header;
    and you don’t 
   even have to link the style.css in the theme root.
 * there are actually many themes that do this.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘style.css file in a folder’ is closed to new replies.

 * 11 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/stylecss-file-in-a-folder/#post-1948744)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
