WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme Style Issue (3 posts)

  1. jparkton
    Member
    Posted 1 year ago #

    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.

  2. Kate Newbill
    Member
    Posted 1 year ago #

    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.

  3. jparkton
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic