Gallery Shortcode Style to Head WordPress Plugin

27 Aug 2008 16:14:06 EDT | Plugins, Wordpress | By: Matt

Extended information for this plugin has been moved to http://sivel.net/wordpress/gallery-shortcode-style-to-head/. This post has been kept for legacy purposes and has been updated to reflect an original release notice.

The Gallery Shortcode Style to Head WordPress plugin has been released.

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

The ticket ticket associated with the above diff is set to milestone 2.9. So it may take a while for the patch to be added to the WordPress core.

Read more about this plugin at http://sivel.net/wordpress/gallery-shortcode-style-to-head/.

Possibly Related Posts:


Leave a Reply




Please place code inside of <code></code>.

Please do not post support or bug type discussions for WordPress plugins here. Support type discussions for WordPress plugins should be posted at http://forum.sivel.net/.

Comments are moderated and may not be approved or may be modified if they contain support discussions.