Forums

Add second Header (4 posts)

  1. 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?

  2. 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(); ?>/

  3. 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 =/

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Replace <?php get_header(); ?> with <?php include(TEMPLATEPATH."/header2.php");?> in the template files that you would like to use the alternative header.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.