{"id":3592,"date":"2008-08-27T20:18:27","date_gmt":"2008-08-27T20:18:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/gallery-shortcode-style-to-head\/"},"modified":"2015-04-02T16:12:44","modified_gmt":"2015-04-02T16:12:44","slug":"gallery-shortcode-style-to-head","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/gallery-shortcode-style-to-head\/","author":242490,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.4","stable_tag":"2.4","tested":"4.1.42","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"Gallery Shortcode Style to Head","header_author":"Intersanity Enterprises","header_description":"","assets_banners_color":"","last_updated":"2015-04-02 16:12:44","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.intersanity.com\/software\/","header_author_uri":"http:\/\/www.intersanity.com\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":11537,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.3":"<p>Correct an &#039;undefined variable&#039; warning\/error.<\/p>","2.2":"<p>Re-sync with WP 3.5 code; improved compatibility with WP 3.5 galleries.<\/p>","2.1":"<p>Bugfixes, re-sync with WP 3.1 code, and support for WP 3.1.<\/p>","2.0":"<p>Adds ability to modify or disable the default styles from WP admin; supports WP 3.0.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","2.0","2.1","2.2","2.3","2.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573768","resolution":"1","location":"plugin"}},"screenshots":{"1":"Plugin settings (under Admin &gt; Settings &gt; Media)."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[356,210,80,1976,1652],"plugin_category":[43,50,59],"plugin_contributors":[84644,78725],"plugin_business_model":[],"class_list":["post-3592","plugin","type-plugin","status-publish","hentry","plugin_tags-css","plugin_tags-gallery","plugin_tags-shortcode","plugin_tags-style","plugin_tags-xhtml","plugin_category-customization","plugin_category-media","plugin_category-utilities-and-tools","plugin_contributors-achmafooma","plugin_contributors-sivel","plugin_committers-achmafooma","plugin_committers-sivel"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gallery-shortcode-style-to-head.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/gallery-shortcode-style-to-head\/trunk\/screenshot-1.png?rev=1573768","caption":"Plugin settings (under Admin &gt; Settings &gt; Media)."}],"raw_content":"<!--section=description-->\n<p>Moves the gallery shortcode styles to the head so it doesn't break XHTML\nvalidation; allows disabling or modifying the default gallery styles.<\/p>\n\n<p>By default when using the WordPress gallery, the styles are placed into the\npost content which breaks XHTML validation. This plugin moves the style into\nthe head of the page using a look-ahead to determine if the [gallery]\nshortcode is used in any posts.<\/p>\n\n<p>This plugin also gives you the option to modify the default gallery style\nCSS or disable the gallery styles entirely (so you can control it from your\ntemplate CSS files).<\/p>\n\n<p>This plugin uses ideas recommended in a patch located at\nhttp:\/\/trac.wordpress.org\/attachment\/ticket\/6380\/6380-style.diff<\/p>\n\n<p>Special thanks to\n* The original author: Matt Martz, http:\/\/sivel.net\n* Serbo-Croatian (sr_RS) translation: Borisa Djuraskovic, http:\/\/www.webhostinghub.com\n* Spanish (es_ES) translation: Ogi Djuraskovic, http:\/\/www.webhostinghub.com\/<\/p>\n\n<!--section=installation-->\n<p>Installation is just like any other WordPress plugin:<\/p>\n\n<ol>\n<li>Upload the 'gallery-shortcode-style-to-head' folder to the '\/wp-content\/plugins\/' directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<p>Immediately after installation, your galleries should pass W3C XHTML validation.\nYou can make further adjustments under Admin &gt; Settings &gt; Media.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>How do I make the WP galleries XHTML compliant?<\/dt>\n<dd><ol>\n<li>Just activate the plugin. Nothing else is required.<\/li>\n<\/ol><\/dd>\n<dt>How do I adjust the default gallery CSS styles?<\/dt>\n<dd><ol>\n<li>In WP admin, go to Settings &gt; Media.<\/li>\n<li>Scroll down to \"Modify gallery CSS style.'\"<\/li>\n<li>Adjust to your liking!<\/li>\n<li>Click \"Save Changes.\"<\/li>\n<\/ol><\/dd>\n<dt>How do I disable the CSS styles (so I can control the CSS in my template)?<\/dt>\n<dd><ol>\n<li>In WP admin, go to Settings &gt; Media.<\/li>\n<li>Scroll down to \"Disable gallery CSS in 'head.'\"<\/li>\n<li>Check the box.<\/li>\n<li>Click \"Save Changes.\"<\/li>\n<\/ol><\/dd>\n<dt>How do I reset the gallery CSS styles to default?<\/dt>\n<dd><ol>\n<li>In WP admin, go to Settings &gt; Media.<\/li>\n<li>Un-check the setting for \"Disable gallery CSS in 'head'.\"<\/li>\n<li>Clear everything in the \"Modify gallery CSS style\" text field (so it's totally empty).<\/li>\n<li>Click \"Save Changes.\" The styles will be reset to default.<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.4 (2015-03-02):<\/h4>\n\n<ul>\n<li>Plugin is now translateable.<\/li>\n<li>Code cleanup and support for latest WordPress.<\/li>\n<li>Serbo-Croatian (sr_RS) translation by Borisa Djuraskovic, http:\/\/www.webhostinghub.com.<\/li>\n<li>Spanish (es_ES) translation by Ogi Djuraskovic, http:\/\/www.webhostinghub.com\/.<\/li>\n<\/ul>\n\n<h4>2.3 (2013-03-08):<\/h4>\n\n<ul>\n<li>Corrected 'undefined varibale' notice and RTL language detection.<\/li>\n<li>Now requires WordPress 3.0 or higher.<\/li>\n<\/ul>\n\n<h4>2.2 (2012-12-11):<\/h4>\n\n<ul>\n<li>Support for WordPress 3.5 and its improved galleries.<\/li>\n<\/ul>\n\n<h4>2.1 (2011-01-15):<\/h4>\n\n<ul>\n<li>Removed clearing br tags in galleries (replaced with clearing div tags).<\/li>\n<li>Corrected bug that threw a cryptic error on the media page for some users.<\/li>\n<li>Support for WordPress 3.1; now requires WordPress 2.9 or higher.<\/li>\n<\/ul>\n\n<h4>2.0 (2010-05-02):<\/h4>\n\n<ul>\n<li>New gallery style settings on the Admin &gt; Settings &gt; Media page.<\/li>\n<li>Ability to modify the default gallery styles.<\/li>\n<li>Ability to disable the default styles entirely (so you can style the gallery in your template CSS).<\/li>\n<li>Support for WordPress 3.0; now requires WordPress 2.7 or higher.<\/li>\n<\/ul>\n\n<h4>1.3 (2010-02-09):<\/h4>\n\n<ul>\n<li>Re-Sync with WordPress 2.9 gallery code for support of the new 'include' and 'exclude' options.<\/li>\n<\/ul>\n\n<h4>1.2 (2009-09-20):<\/h4>\n\n<ul>\n<li>Corrected function of 'Link thumbnails to...' setting on galleries when this plugin is enabled.<\/li>\n<\/ul>\n\n<h4>1.1 (2008-09-22):<\/h4>\n\n<ul>\n<li>Added filter so that the default style can be overridden.<\/li>\n<\/ul>\n\n<h4>1.0 (2008-08-27):<\/h4>\n\n<ul>\n<li>Initial Public Release<\/li>\n<\/ul>","raw_excerpt":"Moves the gallery shortcode styles to the head so it doesn&#039;t break XHTML validation; allows disabling or modifying the default gallery styles.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/3592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=3592"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sivel"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=3592"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=3592"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=3592"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=3592"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=3592"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=3592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}