By mbw on
I currently have a site with www.mysite.com and meet.mysite.com. Single install, single database, second site via prefix table.
I'd like to keep the theme in the subsite, but change the colors of links and header, so members recognize immediately they're on the other site (since they're otherwise very similar in layout.) How can I do this?
Comments
Spawn a "Style-Only" Theme
Are you using a phpTemplate theme in Drupal 4.7 as your primary theme? If so - I can provide further howto.
Right now I'm just using Blue Marine...
And changing colors. I figure we'll work on graphics, etc., later, as for now, I'm more concerned about content and function than prettiness.
So the answer I guess is yes.
Style-Only Howto...
Okay - here goes (quoted from "Building Online Communities with Drupla, phpBB, and WordPress" by Robert Douglass and friends):
So - copy the bluemarine/style.css file into a new bluemarine/[newTheme]/ folder and then alter the rules in bluemarine/[newTheme]/style.css as you like. Your changes will apply to - and only to - sites that use the [newTheme] theme.
Wow...
Thanks...You've been incredibly helpful over the past few days - I really appreciate it (I decided to multi-site without using OGs, btw, as I actually want to use them within the subsite for different functions (houseparties, meetups, newsletters, etc.)
Use php and loops!
Hey! I had to deal with something similar a few times in this life... Can anyone in the community recommend why this is or isn't a good idea?
Some things to keep in mind:
1. You need to set the header so apache serves the php as css. (header("Content-type: text/css; charset: UTF-8"); )
2. Depending on the php_ini settings you can shorthand echos with "<?=$var?>". (notice that there's no "echo" or semi-colon)
3. Depending on the criteria, you can use a for/foreach in place of my if-else.