you are here: codestackercodes [RSS]clean wordpress gallery css

clean wordpress gallery css

paste in your functions.php and get these elements:

.gallery {}
.gallery-item {}
.gallery-icon {}
.gallery-caption {}

<?php

function remove_gallery_style() {
  return "<div class='gallery'>";
}
add_filter('gallery_style', 'remove_gallery_style');

?>

Comments