• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

One header image on the home page but a different header on other pages

This front page file includes PHP code which pulls a header image from the child themes images folder.

The header image only displays on the front page.

The image you upload under the Appearance menu using the Custom Header function displays on all other headers.

This code is written and tested on the Executive Pro child theme by StudioPress.

The code will also work in other child themes using Genesis.

This post answers this forum question:

I want to have one header image on the home page but a different header image on the other pages – for example on the home page I would have the company logo image and on the other pages have the particular agent header image. I am hoping this can be done. I am using Executive Pro Theme.

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems