Unique Header Images for Second Level Pages

I would like to have unique header images on my second level pages.  I am currently utilizing a plugin that rotates images for my front page (Cimy Header Image Rotator), but I want a static image for the other pages that is unique to the page topic. I am using the twenty-twelve theme as my base with a child-theme. What is the best way to go about this.
deitercat2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineNo oneCommented:
Use the function is_single() to control the output on any given page...

So:
if is_single('XX') { // Where XX = page ID

do something different with the header

} 

Open in new window


Official Documentation: http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page

So depending on where the header images live, you edit that template file and add the necessary logic.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ScorchDCommented:
The easiest way to do this is to change the header to look for
 !is_home()

Open in new window

and then add the thumbnail option to each page using
add_theme_support('post-thumbnails', array('page'));  

Open in new window

within your functions file.

This will allow you to use the thumbnail picker as you would on a post page to choose the image you wish to use for that page.

Please bare in mind I am giving you the method, I am not familiar with hacking the twenty twelve theme so would advise you create your own banner setup to do this as it would be much cleaner.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.