WordPress.org

Ready to get started?Download WordPress

Forums

Right place for the entire CSS in my blog? (5 posts)

  1. David DWQ
    Member
    Posted 5 years ago #

    Hi there,

    I'm doing some test in my local server with wordpress 2.7.
    This must be a silly question but I'm doing my blog into my website, so it's going to look like part of the website with the same style base. So my doubt is if I should copy the whole css files from the website and pasted in the path

    /wp-content/themes/myowntheme/

    or could I use the same files and just code something like

    @import url("../../../../styles/base.css");

    in the
    /wp-content/themes/myowntheme/style.css ?

    Hope I'm meking any sense in the way I ask & someone could point me in the right direction :)

    Cheers

  2. drewactual
    Member
    Posted 5 years ago #

    if it is in the peer directory, /base.css will suffice.

  3. David DWQ
    Member
    Posted 5 years ago #

    Hmmm, thanks for answer, let me see if I understood, the file base.css is in the path:

    mysite.com/estilos/base.css

    and my blog style is in:

    mysite.com/blog/wp-content/themes/myowntheme/style.css

    In my local server works good. But I'm not sure if it's correct that way when I publish it. I've seen some others wordpress blogs published but they prefer to repeat their css code and place it in the blog/wp-content/themes/myowntheme/ directory. Is that what you mean by peer directory?

    Regards

  4. drewactual
    Member
    Posted 5 years ago #

    oh, whoops.. apparently my reading comprehension skills need work...

    the safest thing to do is point to the complete url.. as in http: //blahblah.. that takes some of the guess work out of it for browsers.

  5. David DWQ
    Member
    Posted 5 years ago #

    OK, thanks for your answer drewactual.
    So there aren't any kind of restrictions on where we can place our style in wordpress themes. Good.

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags