Different Header Background Image On Any Page

This code enables you to:

  1. Display unique header images on any post or page. When no image set, a fallback image is displayed.
  2. Set a default image to be displayed for all non single posts and pages when non set.
  3. Set a different header image using a template for any blog listings page, including archive, author, blog, category, search, and tag pages.

All you need to do is copy and paste the code into your theme.

Demo Video

Most solutions i’ve seen and many already published on this site, don’t enable you to display any widget and your site title & description over your image as seen in the following image:

different-header-image

Here’s the code included in a fresh copy of the Genesis Sample child theme by StudioPress.

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.