TwentyThirteen Header Image only on Main Page?
-
I am trying to have my header image only on the main page in order to not be repetitive on individual post pages. I still want the navigation, just not the image. How I do this?
So far I have this in the header.php child theme file…
<body <?php body_class(); ?>> <div id="page" class="hfeed site"> <header id="masthead" class="site-header" role="banner"> <?php if (is_page_template('index.php') ) { ?> <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> </a> <?php } ?>
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘TwentyThirteen Header Image only on Main Page?’ is closed to new replies.