Posted By

coryschadt on 06/23/11


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

shikkaba


Wordpress - Remove inline style from default gallery


 / Published in: PHP
 

Add this to your functions file

  1. //Remove default inline gallery styling
  2. add_filter( 'gallery_style', 'my_gallery_style', 99 );
  3.  
  4. function my_gallery_style() {
  5. return "<div class='gallery'>";
  6. }

Report this snippet  

You need to login to post a comment.