Created
April 23, 2014 15:47
-
-
Save ivandoric/11220757 to your computer and use it in GitHub Desktop.
wordpress: Remove styling for WP gallery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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