I have built and designed a theme that was perfect for a responsive layout.
The problem I have is that the site owner has little to no concept of WordPress. I am teaching him but he is stubborn. I would like to find a way to remove the height and width properties of image tags when he saves an article, page, or slide. He is using the default images editor.
I would just tell him to ignore/disregard the “width” and “height” properties. But if he’s really that stubborn and you MUST remove these from the HTML, open wp-includesmedia.php and find this line:
$html = '';
It should be in the function get_image_tag. Remove the part that writes out $hwstring so that you end up with: