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 4Obviously 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.