ThemeShaper Forums » Thematic

[closed]

custom page template with custom header

(3 posts)
  • Started 3 years ago by antoniusblock
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. antoniusblock
    Member

    according to the codex, get_header accepts as an argument the name of a php file so that you can use different headers for different page templates eg get_header('home').

    using a child theme for thematic, im attempting to do just that with the following template page:
    <?php
    /*
    Template Name: special-template
    */
    ?>
    <?php

    // calling the header.php
    get_header('special-header');

    ?>
    ...
    special-header is a php file in the same directory as this template, yet the get_header() seems to be ignoring it's argument. Is there something about using thematic as a parent theme that would make this happen?

    http://codex.wordpress.org/Plugin_API#Actions

    Posted 3 years ago #
  2. akmiecik
    Member

    I think your php file needs to be named header-special-header.php to work.

    Posted 3 years ago #
  3. +1 to akmiecik

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.