Title: Multiple Headers
Last modified: August 19, 2016

---

# Multiple Headers

 *  [gray929](https://wordpress.org/support/users/gray929/)
 * (@gray929)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-1/)
 * Hey,
 * How can I get multiple headers/banners for my WordPress blog? Do I have to adjust
   the header.php? I have three banners I wish to rotate. . .
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [t31os](https://wordpress.org/support/users/t31os/)
 * (@t31os)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-1/#post-996428)
 * You could make a basic script to display 1 of 3 images for example….
 * Something like…
 *     ```
       <?php
       $rand_banner = rand(1, 3); // Grab a random number from 1 to 3...
       if($rand_banner == 1) { // If number is 1 ?>
       HTML Code for first image here
       <?php } elseif($rand_banner == 2) { // If number is 2 ?>
       HTML Code for second image here
       <?php } elseif($rand_banner == 3) { // If number is 3 ?>
       HTML Code for third image here
       <?php } ?>
       ```
   
 *  Thread Starter [gray929](https://wordpress.org/support/users/gray929/)
 * (@gray929)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-1/#post-996671)
 * alright, thank you. would i add that into my header.php? would I replace it with
   any current banner snippet?
 * thanks
 *  Thread Starter [gray929](https://wordpress.org/support/users/gray929/)
 * (@gray929)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-1/#post-996728)
 * any help? ty
 *  [lenashore](https://wordpress.org/support/users/lenashore/)
 * (@lenashore)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/multiple-headers-1/#post-996786)
 * I found an answer to multiple images! Look at this brilliant plug in. Works like
   a charm on 2.7. I don’t see a way to make it rotate – but you can assign different
   images to different pages!
    [http://wordpress.org/extend/plugins/add-your-own-headers/](http://wordpress.org/extend/plugins/add-your-own-headers/)
 * (:

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Multiple Headers’ is closed to new replies.

## Tags

 * [Banners](https://wordpress.org/support/topic-tag/banners/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [rotate](https://wordpress.org/support/topic-tag/rotate/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [lenashore](https://wordpress.org/support/users/lenashore/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/multiple-headers-1/#post-996786)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
