Title: [Plugin: Unique Headers] WordPress Custom Headers
Last modified: August 20, 2016

---

# [Plugin: Unique Headers] WordPress Custom Headers

 *  Resolved [Tim Griffin](https://wordpress.org/support/users/tgriff/)
 * (@tgriff)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/)
 * It should be noted that in order to use this plugin the custom headers option
   must be enabled.
 * How to enable this?
    See: [http://codex.wordpress.org/Custom_Headers](http://codex.wordpress.org/Custom_Headers)
 * For example, I am using a child theme built on Canvas by WooThemes.
    To enable
   use of this plugin here’s what was needed:
 * 1. Add the following to your functions.php (you can adjust the height and width
   depending on your theme)
 *     ```
       // Add support for flexible headers
        $header_args = array(
        'flex-height' => true,
        'height' => 183,
        'flex-width' => true,
        'width' => 680,
        'default-image' => get_template_directory_uri() . '/images/header.jpg',
       // 'admin-head-callback' => 'mytheme_admin_header_style',
        );
   
        add_theme_support( 'custom-header', $header_args );
       ```
   
 * 2. Now setup the default background under the Appearance / Header menu item
 * 3. Add the image call to your header.php file:
    `<img src="<?php header_image();?
   >" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()-
   >width; ?>" alt="image description" class="custom_header" />`
 * In my case it was better to insert the image call using the WooThemes hook and
   the code was added to our functions.php file like this:
 *     ```
       add_action( 'woo_header_inside', 'woo_custom_header_image' );
   
       function woo_custom_header_image () {
       ?>
   
       <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="image description" class="custom_header" />
   
       <?php
   
       } // End woo_custom_header_image()
       ```
   
 * And finally add a bit of styling in the style.css file of your site to control
   how the image aligns itself. In my case, the image needed to float to the right
   of the logo image.
 *     ```
       #header img.custom_header{
       	float: right;
       }
       ```
   

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/?output_format=md)
[2](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/page/2/?output_format=md)
3

 *  [bridieamelia](https://wordpress.org/support/users/bridieamelia/)
 * (@bridieamelia)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/page/3/#post-2956315)
 * correction:
    `<div class="center">`
 *  [algebres](https://wordpress.org/support/users/algebres/)
 * (@algebres)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/page/3/#post-2956316)
 * thanks you guys for this great plugins
 * It work great for me
 * you can check here :
 * [http://demo.beprosoft.com/rootsmetro/](http://demo.beprosoft.com/rootsmetro/)
 * best regards

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/?output_format=md)
[2](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/page/2/?output_format=md)
3

The topic ‘[Plugin: Unique Headers] WordPress Custom Headers’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/unique-headers_c1b4ac.svg)
 * [Unique Headers](https://wordpress.org/plugins/unique-headers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/unique-headers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/unique-headers/)
 * [Active Topics](https://wordpress.org/support/plugin/unique-headers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/unique-headers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/unique-headers/reviews/)

## Tags

 * [theme customization](https://wordpress.org/support/topic-tag/theme-customization/)
 * [WooThemes](https://wordpress.org/support/topic-tag/woothemes/)
 * [wordpress function](https://wordpress.org/support/topic-tag/wordpress-function/)

 * 32 replies
 * 13 participants
 * Last reply from: [algebres](https://wordpress.org/support/users/algebres/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-unique-headers-wordpress-custom-headers/page/3/#post-2956316)
 * Status: resolved