Additional Option on Custom Header admin

I would like to extend the Custom Header class to include an animation feature for the header graphics. Essentially, I’d like to add another possible value for the radio button for randomization. The existing code reads: if ( 1 < count( $headers ) ) { echo ‘<div class=”random-header”>’; echo ‘<label><input name=”default-header” type=”radio” value=”random-‘ . $type … Read more

When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?

I’m currently using WordPress’s built in Custom Headers to get images for a slideshow on the homepage of my website. For the most part, this has worked as intended; it allows me to upload a set of images and have client visualize what’s happening. However, I found something that wasn’t ideal. When you upload a … Read more

How to get the custom header image’s alt text?

I’m using a custom header in my theme. My aim is to add an alt attribute to my custom header img element. My img element so far looks like this: <img src=”https://wordpress.stackexchange.com/questions/151850/<?php header_image(); ?>” height=”<?php echo get_custom_header()->height; ?>” width=”<?php echo get_custom_header()->width; ?>” alt=”” /> How can I get the alt text of the custom header … Read more