• Resolved bexvlad

    (@bexvlad)


    I am trying to show a unique header for Page ID=8. I amended the page.php to start thus:

    <?php if ( is_page(8) ) {
        get_header( 'home' );
    }  else {
        get_header();
    }
    include get_template_directory()."/includes/tt_meta.php";
     global $this_post_id; $this_post_id = $post->ID;top_widget_print('in');
    if ( theme_get_meta_option($post->ID, 'theme_show_home_widget') &&

    and I created an additional theme with the new header, copied its header.php, renamed it header-home.php and copied this file to the main theme (so there is now a header.php and a header-home.php within the Theme).

    I do not understand why I cannot see the changed header on the Home page (ID=8).

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Conditional Header problem’ is closed to new replies.