Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wordpress: Remove styling for WP gallery
<?php
add_filter('gallery_style',
create_function(
'$css',
'return preg_replace("#<style type=\'text/css\'>(.*?)</style>#s", "", $css);'
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment