body classes Blog

Amanda Luker
Jun 2, 2010

Arm yourself with Drupal $body_classes!

A common question I get for theming Drupal sites is how to apply css to specific pages. For example, you might want your background image for your header to change on specific pages. Out of the box, Drupal doesn't give you any class in the HTML that's unique to your node to grab onto. This is... more
Syndicate content
Contact Us

AdvoTwitter

  • MT @seasonothebitch: INTERNET. We're starting a labor section at @AlterNet & they've put me in charge. What a wild idea http://t.co/f6Cz8rM4
    February 8, 2012 - 11:58am
  • RT @glaad: Retweet if you are celebrating #Prop8 being ruled unconstitutional again today! http://t.co/NUsL91sS #LGBT #MarriageEquality
    February 7, 2012 - 6:06pm
  • RT @GreggJLevine: Breaking: a million people occupy wall st. to cheer union members; NYPD beats no one! #OWS #GIANTS
    February 7, 2012 - 4:22pm
  • RT @eff: If you're a U.S. citizen who lost non-infringing personal files to #Megaupload, please contact us here: http://t.co/O5QDEDYu
    February 3, 2012 - 6:34pm
  • RT @mlsif: Wael @Ghonim and David Gergen at JFKForum on Revolution 2.0 #tahrir #Egypt http://t.co/OPj2ysKp
    February 3, 2012 - 4:21pm