Child page to show same header as Parent page
-
On my website each parent page has a different header. I have been able to generate this successfully by using this code:
<?php
$post = $wp_query->post;
if ( is_page(‘page1’) ) {
include(TEMPLATEPATH . ‘/header-1.php’);
}
?>But when I go to a child page no header is showing.
What I need is for child pages to show the same header as its parent.
Any idea?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Child page to show same header as Parent page’ is closed to new replies.