Random header image - Drupal 7


Author Message
Grugnir

Posted: 5/22/2011
Quote message 

Hey, kids, I've got a problem: how do you set up a random header image in a D7 theme? In D6, all i did was create a rotate.php and replace

background-image: url('images/Header.jpg'); 

with
background-image: url('headers/rotate.php'); 


in the css file. (you do NOT want to know how long that took for me to figure out - I'm pretty clever but not exactly a code geek)

The problem is that now they seem to have done away with sticking the image into the header.jpg file and implemented a "header-object.png" file to slap on top of the header.jpg instead. Ok, so you'd think that all I'd have to do would be to find some reference to that png file and replace it with "rotate.php." Easy-breezy, right?

Wrong.

I can't find "header-object.png" in ANY of the files that were exported (believe me, I've looked). What the #%!*%!! am I missing here???
 
Grugnir

Posted: 5/23/2011
Quote message 

Nevermind.

Memo to me: do NOT try to do things that involve thinking on the May 2-4 weekend...