外掛說明
Normally the title attribute of an image show up when hovering the mouse over an image. This behavior can easily be avoided by removing the title attribute-tag from the image. However if the site is already crowded with hundreds of images, removing each and every title attribute-tag can be a time consuming job. This plugin simply filters out all title attribute-tags before they are sent out to the browser. Install into the theme plugin directory, activate, and you’re done! No more titles show up when hovering the mouse over images on your site!
How it Works
All the plugin do is adding a hook to ‘the_content’ and to ‘post_thumbnail_html’ and removes all title-tags before they are sent to the browser. The plugin will only work for what is contained in ‘the_content’ and the ‘post_thumbnail_html’, i.e. it will not remove title attribute-tags from other parts of the site.
Licence
This plugin is free for everyone! Since it’s released under the GPL, you can use it free of charge on your personal or commercial blog. 🙂
安裝方式
- Upload ‘img-title-removal.php’ to the ‘/wp-content/plugins/’ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
常見問題集
- Will the plugin remove all original img-titles that once were entered in the posts?
-
No, the plugin will not remove any title tag from any post. It will only filter them out before they are sent to the browser.
參與者及開發者
變更記錄
1.1
- Fixed reported compatibility issues with other plugins (Portfolio Slideshow).
1.0
- Added support for also removing titel tags from thumbnails. Many thanks to Luisa Ambros Costa for giving me the tip to fix this!
0.2.1
- First version.