Forums

Pointing to externaly hosted style.css (4 posts)

  1. kjhobin
    Member
    Posted 3 years ago #

    Hey,

    I'm using a css site theme and matching wordpress theme from http://www.freecsstemplates.org. I would like to only have to maintain one style file. The style files are identical.

    Does any one know how to modify a theme so that it uses a style sheet hosted else ware than inside the theme file?
    Lets call the main site http://www.example.com, and its main style sheat is at http://www.example.com/style.css (the one I would like to use everywhere). The blog would be located at blog.example.com

    Thanks in advance!

  2. Elpie
    Member
    Posted 3 years ago #

    If they are both on the same domain you should be able to simply import the main stylesheet into styles.css

    Backup your styles.css then remove everything except the information at the top, between the /* */ tags.

    Add @import "URL";
    with URL being the path to your main css.

  3. kjhobin
    Member
    Posted 3 years ago #

    ok, thanks!
    I was way off base trying to find the reference to the style file and redirect it.

  4. kjhobin
    Member
    Posted 3 years ago #

    Yay it works, mostly. Still need to tweek a few things.
    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic