[wp-trac] [WordPress Trac] #26697: HTML5 Galleries

WordPress Trac noreply at wordpress.org
Thu Mar 6 04:01:21 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 ScottSmith):

 Replying to [comment:18 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.

 Right, but using CSS to layout the gallery would effectively break the
 user's ability to specify how many columns they want for their gallery. I
 don't think this ramification was taken into account before this
 functionality was removed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26697#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list