PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. CSS
  4. Gallery Shortcode Style to Head
Gallery Shortcode Style to Head icon

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.

By Matt Martz·CSS·Free
5(1 reviews)
·100 active installs·Updated 11 years ago
DownloadVisit HomepageCompare

As of April 2026, Gallery Shortcode Style to Head is a WordPress css plugin with 100 active installations and a 5/5 rating from 1 reviews. It has been downloaded 11K+ times in total. Requires WordPress 3.3+ and PHP false+. Available on WordPress.org since 2008. Last updated 11 years ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….

5/51 reviews
100active installs
11K+total downloads
18 yearssince 2008

Overview

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 [gallery]
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
https://trac.wordpress.org/attachment/ticket/6380/6380-style.diff

Special thanks to
* The original author: Matt Martz, http://sivel.net
* Serbo-Croatian (sr_RS) transl…

Read full description on WordPress.org

Screenshots

Ratings & Reviews

51 reviews
5 ★
1
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress3.3+ requiredTested up to 4.1.42
PHPfalse+ required

Top Alternatives to Gallery Shortcode Style to Head

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager icon
WPCode – Insert Headers and Footers +…
4.93.0M+ installsUpdated 2 weeks ago
ViewCompare
Code Snippets icon
Code Snippets
4.71.0M+ installsUpdated 1 month ago
ViewCompare
Simple Custom CSS Plugin icon
Simple Custom CSS Plugin
4.7100K+ installsUpdated 1 year ago
ViewCompare
Widget CSS Classes icon
Widget CSS Classes
4.990K+ installsUpdated 1 year ago
ViewCompare
Simple CSS icon
Simple CSS
4.980K+ installsUpdated 6 months ago
ViewCompare
View all css plugins →

Frequently Asked Questions

Changelog

2.4 (2015-03-02):

  • Plugin is now translateable.
  • Code cleanup and support for latest WordPress.
  • Serbo-Croatian (sr_RS) translation by Borisa Djuraskovic, http://www.webhostinghub.com.
  • Spanish (es_ES) translation by Ogi Djuraskovic, http://www.webhostinghub.com/.
View full changelog on WordPress.org

Contributors

Matt MartzMatt Martzachmafoomaachmafooma
Plugin Info
Version
2.4
Last Updated
Apr 2, 2015
WP Requires
3.3+
Tested Up To
4.1.42
PHP Requires
false+
Active Installs
100
Downloads
11K+
Added
Aug 27, 2008
Business
Free

Tags

cssstylexhtmlgalleryshortcode

Developer

M
Matt Martz
12 plugins0.0M+ total installs
View all plugins →

Quick Compare

Gallery Shortcode Style to Head vs WPCode – Insert Headers and Footers +…→Gallery Shortcode Style to Head vs Code Snippets→Gallery Shortcode Style to Head vs Simple Custom CSS Plugin→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.