Forums

Using style.css in sub folder for template (3 posts)

  1. eyecree8
    Member
    Posted 3 months ago #

    I'm transferring a html site over to WordPress. I created all the php files to make a theme. I know that in the template folder, you should have the style.css file on the same level as the index.php file, however, the designer created the style.css file to be in a sub folder called css. So the actual location of the style.css file would be /css/style.css. Is there a way to get WordPress to recognize the nested css file as the one running the template?

  2. peredur
    Member
    Posted 3 months ago #

    Only if you add a style.css file to the template directory with an @import statement for the nested one. As far as I know, anyway, because WP needs the comment block at the top of style.css for the theme to be valid.

    Cheers

    PAE

  3. eyecree8
    Member
    Posted 3 months ago #

    Thanks a bunch. That worked!

Reply

You must log in to post.

About this Topic