• I have my own folder – /themes/ – where I put all my theme-related images and css.

    I don’t want to put my CSS in the wordpress themes directory.

    What if I want to link to my CSS outside of WordPress? I would have to put up with having /wp-themes/ in the address. I don’t think so.

    Is there a way of supplying your own folder for WP’s themes to link to?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You could probaly have some dummy css file which will contain only the following

    /*
    Theme Name: My Theme

    ....etc
    /*

    And then in header.php of your theme, just hardcode the reference to your actual css file.

    Untested.

    Just wondering why you would not want each themes CSS in the file with the rest of the stuff?

    Like themes/red or themes/blue and in each folder would be that css?

    Thread Starter matthewrobertson

    (@matthewrobertson)

    I do. I just don’t want to put them under the WordPress directory.

    (To make WordPress themes, you have to put the CSS under the WordPress directory, no?)

    Is there another way?

    (By the way I am referring to WP 1.5)

    No, you don’t have to put the CSS in the root directory. You can put it in the wp-content/themes/yourtheme/ folder.

    http://codex.wordpress.org/Using_Themes
    http://codex.wordpress.org/Theme_Development

    Thread Starter matthewrobertson

    (@matthewrobertson)

    (Sorry, typo..)

    Exactly. I don’t want to put it under /wp-content.. That just looks ugly in the URI.

    I would like to put it under my own folder, like /themes/.

    Is there a way that I can put the CSS in my own specified folder, and still use it in Theme Manager?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CSS file in WP directory or another directory? (WP 1.5)’ is closed to new replies.