CSS tweaks on a multisite

CSS tweaks on a multisite

6 posts / 0 new
Last post
Zdean's picture
z
Points: 0
CSS tweaks on a multisite

In my multisite installation, I want to tweak the css for one of my domains (example.com). Short of creating an entire new theme or subtheme at sites/example.com/themes, is there some simpler way for me to do this?

Thanks.

Status: 
Resolved
pbull's picture
peter.bull
Points: 6

Hi Z,

I followed up to this question in the support ticket you filed this morning, but I'm copying my response here for the forums...

If you're just making minor tweaks to the CSS, you could try using the CSS Injector module (http://drupal.org/project/css_injector) which allows you to insert basic CSS into the page output based on configurable rules.

There is a screencast on Youtube that walks through this process: http://www.youtube.com/watch?v=rwwnhI7Thlc

Note that theme CSS is processed AFTER module CSS, so you need to craft your injected CSS rules so that the theme does not take precedence. A simple way to do that is by using the !important declaration: http://www.w3.org/TR/CSS2/cascade.html#important-rules

For anything more than minor overrides to the theme, it is recommended that you create a sub-theme (which can exist in either /sites/all/themes or /sites/example.com/themes).

---
Regards,
Peter Bull
Acquia Client Advisory Team

---
Regards,
Peter Bull
Acquia Client Advisory Team

Zdean's picture
z
Points: 0

Thanks, Peter.

One more related question. Is it possible to do a subtheme of a subtheme? This is what I mean:

I'm using Blueprint as my base theme. In my core install, I've created a subtheme SubBlueprint which has a lot of customized CSS. For a particular website, I'm going to do quite a bit of tweaking, but I'd like to keep the majority of the SubBlueprint CSS...so the idea is to create a SubSubBlueprint. That way, if I make a system wide tweak in the SubBlueprint CSS file, it will show up in the SubSubBlueprint website. Make sense?

Thanks.

pbull's picture
peter.bull
Points: 6

Hi Z,

Yes, you can create a sub-theme of a sub-theme. I'm working with a client right now who is doing just that, using a sub-theme of Zen as the basic template for the site, but putting section-specific changes in a sub-theme of that.

See this page on d.o. for more detail - "Sub-theme structure and inheritance": http://drupal.org/node/225125 Note the limitations regarding inheritance of advanced theme settings, color, and custom regions.

---
Regards,
Peter Bull
Acquia Client Advisory Team

---
Regards,
Peter Bull
Acquia Client Advisory Team

asad10987t@gmail.com's picture
asad10987t
Points: 0

You have made an awesome showing on this article. It's exceptionally lucid and exceedingly astute. You have even figured out how to make it reasonable and simple to peruse. You have some genuine written work ability. Much thanks to you. Brian Holm Attorney San Diego

jhf69803@xoixa.com's picture
jhf69803
Points: 0

I think there is an application available for doing the same. Adding the CSS tweaks does not seems to be a complex task and it can be done easily even by the beginners. Using the CSS Injector module will be the simplest way of doing that. what is web development