[theme-reviewers] Updating Custom Backgrounds and Custom Headers for WordPress 3.4

David Law wp-hackers at google-adsense-templates.co.uk
Mon Apr 16 23:03:10 UTC 2012

On Mon, 16 Apr 2012 09:04:58 -0700, you wrote:

>Can do the same for Custom Headers, but think it will be messy. Anyone 
>got a 'good' solution up and running?
>Hi David!
>A new version of P2 was released recently. It has custom header support 
>for 3.4 and previous versions.
>You can see the code here:

Thanks Mike,

That's a much simpler code solution than I was thinking of using.

Think I have it working now.

For those looking for backwards compatability with the height and
width attributes of the image code within their header.php files this

width="<?php if(function_exists('get_custom_header')) {echo
get_custom_header()->width;} else {echo HEADER_IMAGE_WIDTH;} ?>"
height="<?php if(function_exists('get_custom_header')) {echo
get_custom_header()->height;} else {echo HEADER_IMAGE_HEIGHT;} ?>"

http://www.stallion-theme.com/ Stallion WordPress SEO Theme
http://www.stallion-theme.com/stallion-wordpress-seo-plugin Stallion
WordPress SEO Plugin

>theme-reviewers mailing list
>theme-reviewers at lists.wordpress.org

More information about the theme-reviewers mailing list