• Resolved jparkton

    (@jparkton)


    I have been taking existing HTML/CSS templates I have and converting them into wordpress themes. I run into one error from time to time and would like to know how to handle it.

    When I have a template that has a directory structure
    /
    index.html
    style.css

    there is no issue but when I have

    /
    index.html
    fullpage.html
    /styles
    layout.css
    reset.css
    ie.css
    /images
    buncha.jpg’s

    I have issues with layout. I can place a style.css in the / and fix(ish) it but I would like to be able to leave all my css in styles folder and just have wordpress look there. How can I accomplish this? in my header.php there is href="<?php bloginfo('stylesheet_url'); ?>" is that where I need to change it or is it somewhere else?

    This is localhost only as that is where I do my development I can put it online if needs be.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The main stylesheet must be named style.css but you can put it into a directory. If you wanted it in /styles, change that line in header.php to
    href="<?php bloginfo('stylesheet_url'); ?>/styles/"
    to make WordPress look in that directory.

    Thread Starter jparkton

    (@jparkton)

    That worked, I was missing my beginning / such a small thing can be such a pita ?? works now though thank you so much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme Style Issue’ is closed to new replies.