Login to your admin panel:
- On left side go to Appearance and click on Header
- You will see header image option
- Now click on add new image
- Selece your image and click on SAVE AND PUBLISH button
Now place the below code in your header file:
1 2 3 4 5 6 7 |
<!--?php if ( get_header_image() ) : ?--> <div id="site-header"> <a rel="nofollow" href="<?php echo esc_url( home_url( '/' ) ); ?>"> <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> </a> </div> <!--?php endif; ?--> |
That’s it…