Categories
Wordpress

Header to Show on Home Page Only – WordPress

Header to Show on Home Page Only – WordPress

Hi friends, in this post we will learn how to show a custom header in home page only in WordPress, or Header to Show on Home Page Only – WordPress. Showing a custom header sometime is necessity. Here we have done it for twenty twelve theme for our blog.

Earlier we had discussed about How To Add Social Media Buttons to PostsHow to Create a WordPress Child ThemeExcerpts in Twenty Twelve ThemeEditor Feature is not Showing in WordPress and How To Check For Broken Links In WordPress Blog.

Changes you have to make:

Open header.php in edit mode and paste whatever you want to display on home page between below mention php code.

<?php if( is_home() ) : ?>

whatever to show on home page only.

<?php endif; ?>