MAMP.ONE

web publishing magazine

WordPress —
remove the size attributes of images

You are developing a responsive WordPress theme and want to remove the attributes “height” and “width” from images for output? No problem. Just add the following source code to your functions.php file: