Hi guys, you can fix this by inserting the following code into your functions.php
add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 );
add_filter( 'image_send_to_editor', 'remove_width_attribute', 10 );
function remove_width_attribute( $html ) {
$html = preg_replace( '/(width|height)="\d*"\s/', "", $html );
return $html;
}
As described here: http://css-tricks.com/snippets/wordpress/remove-width-and-height-attributes-from-inserted-images/
HTH
Sam
Hi guys, you can solve this issue by inserting the following in your functions.php:
add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 );
add_filter( 'the_content', 'remove_width_attribute', 10 );
function remove_width_attribute( $html ) {
$html = preg_replace( '/(width|height)="\d*"\s/', "", $html );
return $html;
}
As described here: http://css-tricks.com/snippets/wordpress/remove-width-and-height-attributes-from-inserted-images/
HTH
Sam