milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
918 stars 196 forks source link

Default Gallery display, no style-rules? #196

Closed shrwnsan closed 11 years ago

shrwnsan commented 11 years ago

Trying to see if its everyone else. I'm using Compass so Foundation is up to 4.1.6 I think. I posted a gallery onto a post using

[gallery]

Which gives a default of 3 thumbnails from what I recall. However, it's displaying like so:

screen shot 2013-05-29 at 9 36 48 pm

Source code looks normal to me. I haven't done any customization to the CSS other than the border:

screen shot 2013-05-29 at 9 36 08 pm

Please do let me know if you get the same behaviour; and if you have any snippet of style rules to fill in to fix. Thanks in advance.

senlin commented 11 years ago

I think you need to echo out the line in the clean.php file that cleans up the default WP gallery styles: lib/clean.php Line 21

shrwnsan commented 11 years ago

Thanks @senlin. That seems to do it

// clean up gallery output in wp
//add_filter('gallery_style', 'reverie_gallery_style');

FYI: Jetpack Tiled Gallery works if the above is uncommented.

lifelikeneek commented 10 years ago

Sorry to bump an old topic!

Would there be a way to remove the reverie_gallery_style filter from a child theme? I am desperately trying to avoid modifying the core reverie theme.

senlin commented 10 years ago

@lifelikeneek I think that you could remove the filter?

add_filter ( 'gallery_style', 'my_gallery_style', 11 );

function my_gallery_style() {
     remove_filter ( 'gallery_style', 'reverie_gallery_style' );
}

(untested, but I think it should be something like this if I'm not mistaken)

shrwnsan commented 10 years ago

^ +1 to @lifelikeneek's solution. I think that'll work as well.

lifelikeneek commented 10 years ago

Just tried it. No such luck :(. Thanks @senlin and @stechico for the help though!

senlin commented 10 years ago

I edited the filter:

add_filter ( 'gallery_style', 'my_gallery_style' );

function my_gallery_style() {
     remove_filter ( 'reverie_gallery_style' );
}