Categorized | Articles, Tutorials

Enable Custom Header Management to Change Header Images Easily

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:

  1. FREE Custom WordPress Theme up for Grabs….
  2. Custom Login Design with the BM Custom Login Plugin
  3. Customising WordPress with custom fields
  4. Enable Navigation Menu Editor for Easy Menu Management
  5. Add Support For Post Thumbnail Images

Leave a Reply

Categories

-->