Restore Image Title

Description

WordPress 3.5 introduced a new feature – when images are inserted into posts, the title attribute is not included in the image tag. This was done with the best of intentions relating to accessibility, as documented on Trac

Unfortunately, this causes problems for some Lightbox plugins, quite apart from stopping image tooltips from appearing.

This plugin hooks into the media_send_to_editor filter and inserts the image title into the html inserted into the post.

Installation

  1. Upload the restore-image-title folder into the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Installation Instructions
  1. Upload the restore-image-title folder into the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
Does it do anything else?

No.

Reviews

Good plugin – if it would work

This is the right plugin to add img titles to a picture in lightboxes or post previews and get a boost in SEO.
Unfortunately on my website blackjack-winner.de there are no img-titles after activating the plugin. What can I do?

Super

Fonctionne du premier coup il y a même pas de config à faire.

Thank you very much perfect

Read all 11 reviews

Contributors & Developers

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

Contributors

Changelog

1.0

  • Initial release

1.1

  • Checks for existence of title attribute before adding anything. Filters title with esc_attr() to avoid any markup in the title breaking the img tag.

1.5

  • Now adds titles to gallery thumbnails, which also works for at least some lightbox plugins. Thanks to photoMaldives for posting code and OC2PS for prompting me to update the plugin.