[wp-hackers] Share CSS with parent site

Michael Harris harrismw at huridocs.org
Fri Nov 21 16:42:54 GMT 2008


An obvious possibility would be to direct your main website to the
/blog/.../style.css (or whatever it is called).

Alternatively, if you are using a custom theme (or if you can modify
the theme), you can point the theme at the stylesheet in the main
root.

Actually, I would go the second option.

If you have:
/blog/
/style/style.css
/index.html

have index.html refer to ./style.css and the theme refer to
../.../style/style.css
Easy.

Michael.

On Fri, Nov 21, 2008 at 5:36 PM, Dan Gayle <dangayle at gmail.com> wrote:
> I'm running an installation where the blog is integrated into an existing
> website. The blog sits outside the root directory in /blog/
>
> We matched the styles of the parent site with the styles in our theme, but
> we would like to take it a step further. It sucks having to maintain two
> identical sets of stylesheets.
>
> How is it possible to share one single css file between both the parent site
> and the wordpress install?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list