WEBWPUSER
Member
Posted 3 years ago #
In myne theme i use a flashanimation in the header. But the flashanimation play also if you select a other page.
So i make a extra pagetemplate and replace <?php get_header(); ?> to <?php get_headerextra(); ?> and dupicate header.php and rename it to headerextra.php. In the headerextra.php a remove the flasanimation.
But now i get the error "Fatal error: Call to undefined function get_headerextra()".
Is there somebody who can help me with this?
dlmfisher
Member
Posted 3 years ago #
You have to update the functions file if you do it that way. What I did is create header2.php, and then I used the line /<?php include(TEMPLATEPATH."/header2.php");?>/ instead of /<?php get_header2(); ?>/
everafter
Member
Posted 2 years ago #
I have the same problem...but i'm new for WP...can you explain how i shoud change the functions file exactly , please =/
Replace <?php get_header(); ?> with <?php include(TEMPLATEPATH."/header2.php");?> in the template files that you would like to use the alternative header.