Title: Problem with custom headers
Last modified: August 20, 2016

---

# Problem with custom headers

 *  [handcoded](https://wordpress.org/support/users/handcoded/)
 * (@handcoded)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/problem-with-custom-headers/)
 * Hi
 * I want to be able to have a different slideshow on each page that sits in the
   header.
 * I’ve renamed my templates header.php file to header-home.php
    I created a new
   header.php file with this code
 *     ```
       <?php
       if ( is_home() ) :
         get_header('home');
       elseif ( is_Donations() ) :
         get_header('donations');
       else :
         get_header();
       endif;
       ?>
       ```
   
 * I have duplicated header-home.php and called the copy header-donations.php
 * When trying to access my donations page I get the following error
    **Call to 
   undefined function is_Donations() in /wp-content/themes/ggsoccer/header.php on
   line 4**
 * Obviously I am doing something wrong but do not know what. I have other pages
   that contain spaces in the names. Is this going to be an issue as well.
 * I’m new to WordPress so any help to sort this out would be much appreciated.

The topic ‘Problem with custom headers’ is closed to new replies.

## Tags

 * [custom headers](https://wordpress.org/support/topic-tag/custom-headers/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [handcoded](https://wordpress.org/support/users/handcoded/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/problem-with-custom-headers/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
