[wp-trac] [WordPress Trac] #18497: More flexible overriding of gallery short code default CSS
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 23 06:18:34 UTC 2011
#18497: More flexible overriding of gallery short code default CSS
-------------------------+-----------------------------
Reporter: jb510 | Owner: Jon Brown
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.2.1
Severity: minor | Keywords: has-patch
-------------------------+-----------------------------
The default gallery CSS can be removed by filter
(use_default_gallery_style), but it seems to me it'd also be nice to
override the CSS conditionally on a post by post or gallery by gallery
basis rather than globally and without having to write conditional
statements in php to do it.
Users could then continue to use the gallery short code's automatically
generated CSS, but override it selectively without needing PHP.
One option would be to pass a class into the shortcode, but I think just
the ability to pass in an attribute disabling the default CSS would
actually be best.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18497>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list