Support » Fixing WordPress » 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

    if ( is_home() ) :
    elseif ( is_Donations() ) :
    else :

    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.