WordPress tutorials: Gallery shortcode remove css

Wpsnipp –  The Gallery shortcode is a great step in the right direction. If you have multiple galleries on a page, it gets redundant.Adding this PHP code to your function.php will remove the CSS wordpress adds when using the gallery shortcode.

 

 

<?
add_filter('gallery_style', create_function('$a', 'return "<div class='gallery'>";'));
?>

Be Sociable, Share!

Leave a comment