[wp-hackers] Share CSS with parent site
Stephen Rider
wp-hackers at striderweb.com
Sat Nov 22 03:17:38 GMT 2008
Why don't you just edit the theme and add a regular <style> tag that
calls the CSS you want?
OR
In the blog's theme, blank out the CSS, and do an @include to the CSS
you want.
Stephen
On Nov 21, 2008, at 8:41 PM, Dan Gayle wrote:
> I figured out a way to do this easily. In fact, it was so obvious
> that I want to hit myself upside the head. I'm already calling
> wp_head() to pull in data from different pages, etc, so why not just
> use bloginfo('stylesheet_url') and call it a day? Problem solved.
>
> So I know how to pull something FROM wordpress, but how do I pull
> something from the root INTO wordpress?
>
>
>
> On Nov 21, 2008, at 8:48 AM, Glenn Ansley wrote:
>> There are a couple of ways to do this. The easiest would probably
>> be to just
>> delete all the style information in your styles.css (leave the
>> theme info in
>> the comments) and then use the @import method to bring in your
>> style.css
>> file.
>>
>> On Fri, Nov 21, 2008 at 11:36 AM, 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
>>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> 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