Gallery Shortcode Style to Head
November 1st, 2009This WordPress plugin moves the gallery shortcode styles to the head so it doesn’t break XHTML validation.
By default when using the gallery shortcode the styles are placed into the post content which breaks XHTML validation. This plugin places the style into the head of the page using a look ahead to determine if the ‘gallery’ shortcode is used in any posts.
This plugin uses ideas recommended in a patch located at:
http://trac.wordpress.org/attachment/ticket/6380/6380-style.diff
There is a ticket associated with this validation issue currently set for some future version of WordPress:
http://core.trac.wordpress.org/ticket/10734
Special thanks to the original author of this plugin, Matt Martz, http://sivel.net.
Version Information
Version: 1.2
Requires WordPress Version: 2.6
Compatible up to: 2.9
Last updated: September 20, 2009
License: GNU General Public License (GPL)
Installation
- Upload the
gallery-shortcode-style-to-headfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
NOTE: See “Other Notes” for Upgrade and Usage Instructions as well as other pertinent topics.
Usage
- Just activate and enjoy. Nothing else is required.
Upgrade
- Delete the previous
gallery-shortcode-style-to-headfolder from the/wp-content/plugins/directory - Upload the new
gallery-shortcode-style-to-headfolder to the/wp-content/plugins/directory
Download
Gallery Shortcode Style to Head version 1.2
Archived and Development Versions
Support
Please contact me with any support requests or bug reports. Thank you!












