Could anyone please tell me if it's possible and how I could accomplish getting the main (header) image on a WordPress theme to randomize? I'd like to have 3 or 4 different versions of the header image appear throughout the site. Thanks in advance, Joe
Wordpress is PHP so he must have PHP... You can use a random number generator to swap out the different header images. You'll have to put this snippet in the header file of Wordpress where the header image is. <?php $rand = rand(0,3); if ($rand == 0) echo '<img src="image1.jpg">'; if ($rand == 1) echo '<img src="image2.jpg">'; if ($rand == 2) echo '<img src="image3.jpg">'; if ($rand == 3) echo '<img src="image4.jpg">'; ?> PHP: