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

WP SITES

2670

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Tutorial Requests
  • Contact
  • Videos
  • Tags
  • Log in

Premium Member? - Request custom code

Unique Site Header Image For Each Category Page

This code enables you to change your header image for each category archive page like this:

category-headers

Simply upload a different image to your child themes images folder with a file name matching what’s in the code. In this example you’ll find 1.png for category-1, 2.png for category-2, 3.png for category-3 and so on.

The default header image added via the WordPress customizer is used for all other pages.

The code works in any theme.

Here’s the code for logged in members:

Register for full access

Related Tutorials

  • Unique Site Header Image For Each Category Page

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Brad Dalton Specializes In Genesis child theme customization & code modification. Read More…

Learn 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