This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Header Image Description

Description

Grab header image description from hardcoded description in functions.php or custom header additions and return it for usage in template files. Primary support Twenty Ten and Twenty Elevent themes, but others is also supported.

If header image does not have description (uploaded image), blog name and tagline is used.

Screenshots

  • A header image description set to TITLE displays in tooltip when hover header image.

Installation

  1. Upload header-image-description to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add to template file <?php header_image_desc(); ?> in place where you wish to print out header image description.

FAQ

Why this extension?

To provide valid XHTML code with dinamic header image description.

Where to add this code?

Open header.php template file, find line <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /> (line 77 in Twenty Ten and 94 in Twenty Eleven), and replace alt="" with alt="<?php header_image_desc(); ?>".

You can also add title="<?php header_image_desc(); ?>" before img closing tag />, so on hover header image visitor get description in tooltip.

Contributors & Developers

“Header Image Description” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.1

  • Initial release