[wp-trac] [WordPress Trac] #18497: More flexible overriding of gallery short code default CSS

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 24 08:04:55 UTC 2011


#18497: More flexible overriding of gallery short code default CSS
-------------------------+------------------------------
 Reporter:  jb510        |       Owner:  jb510
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  3.2.1
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by GaryJ):

 A couple of pairs of parentheses can be removed from your patch, and some
 whitespace added, but I like this idea. Saying that though - is it likely
 to be a high percentage of people who want some WP default styling on some
 galleries, and no WP default styling on others?

 Wouldn't they be better to use the filter to turn the WP default styling
 off completely, and then use body_class() values as selectors in their
 style sheet for picking which galleries have style and which don't?
 {{{
 .gallery {
     border: 1px solid red;
 }
 .postid-5 .gallery {
     border: none;
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18497#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list