Once this option is enabled, you will see a new menu item header Appearance and be able to change your header image there.

Add this to your functions.php:
define( ‘HEADER_IMAGE’, ‘%s/images/logo.png’ ); // The default logo located in themes folder
define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ”, 770 ) ); // Width of Logo
define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ”, 153 ) ); // Height of Logo
define( ‘NO_HEADER_TEXT’, true );
add_custom_image_header( ”, ‘admin_header_style’ ); // This Enables the Appearance > Header
// Following Code is for Styling the Admin Side
if ( ! function_exists( ‘admin_header_style’ ) ) :
function admin_header_style() {
?>
#headimg {
height: px;
width: px;
}
#headimg h1, #headimg #desc {
display: none;
}
<?php
}
endif;
Use the Following hook in header.php to link to the header image:
Example -
<img src="” width=”" height=”" alt=”Header Image” />
If you enjoyed this post, make sure you subscribe to my RSS feed!
Related posts:



