[wp-trac] [WordPress Trac] #26697: HTML5 Galleries
WordPress Trac
noreply at wordpress.org
Thu Mar 6 03:38:25 UTC 2014
#26697: HTML5 Galleries
-------------------------------------------------+-------------------------
Reporter: obenland | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.9
Component: Gallery | Version: 3.8
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback commit | Focuses: template
needs-codex |
-------------------------------------------------+-------------------------
Comment (by cramdesign):
Replying to [comment:17 ScottSmith]:
> I recognize that, but how are theme developers anticipated to support
gallery short code styling again, now that Core doesn't print the styles
for free? Are theme developers supposed to copy the gallery_shortcode
function, modify it, and put it into their themes? Or is there a more sane
way of supporting galleries?
WordPress will still print gallery styles as it always has. You won't need
to copy the shortcode function to your theme. However, if you are using
add_theme_support( 'html5', array('gallery')), the easiest way to support
the gallery, that is to style it like a grid or whatever, will be to add
the gallery styles to your css file.
If I understand this change to core correctly, you aren't required to use
the html5 gallery and the old gallery shortcode will still output as it
always has.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26697#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list