Gallery Shortcode Style to Head

Moves the gallery shortcode styles to the head so it doesn't break XHTML
validation; allows disabling or modifying the default gallery styles.

Author:Intersanity Enterprises (profile at wordpress.org)
WordPress version required:3.3
WordPress version tested:4.1.1
Plugin version:2.4
Added to WordPress repository:27-08-2008
Last updated:02-04-2015
Warning! This plugin has not 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.
Rating, %:100
Rated by:1
Plugin URI:http://www.intersanity.com/software/
Total downloads:10 740
Active installs:100+
plugin download
Click to start download

Moves the gallery shortcode styles to the head so it doesn't break XHTML validation; allows disabling or modifying the default gallery styles.

By default when using the WordPress gallery, the styles are placed into the post content which breaks XHTML validation. This plugin moves the style into the head of the page using a look-ahead to determine if the shortcode is used in any posts.

This plugin also gives you the option to modify the default gallery style CSS or disable the gallery styles entirely (so you can control it from your template CSS files).

This plugin uses ideas recommended in a patch located at http://trac.wordpress.org/attachment/ticket/6380/6380-style.diff

Special thanks to * The original author: Matt Martz, http://sivel.net * Serbo-Croatian (sr_RS) translation: Borisa Djuraskovic, http://www.webhostinghub.com * Spanish (es_ES) translation: Ogi Djuraskovic, http://www.webhostinghub.com/


Screenshots
FAQ
ChangeLog