Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 );
- function remove_thumbnail_dimensions( $html ) {
- $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html );
- return $html;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement