If you don’t have a static front page, then I believe the first line is:
<?php if( is_home() ) : ?>
but please verify that before you change it, that one I’m not 100% sure about
I wanted to do this too. Not a lot of info out there but this worked for me:
Try cutting and pasting the following on top of the appropriate section of your header.php. You are only adding two lines of code, the top and bottom lines. Hope this helps.
<?php if( is_front_page() ) : ?>
<div class=”site-header”>
<div class=”site-branding”>
” 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>
</div><!–.site-branding–>
</div><!–.site-header–>
<?php endif; ?>
WOW that worked perfectly. Thank you very much!