Wordpress: Omit width/height attributes from img tag


/ Published in: PHP
Save to your folder(s)

This is an example of omitting the width and height attributes from a thumbnail img tag in Wordpress. Useful if you are working on a responsive design. Use inside The Loop.

URL: http://wordpress.stackexchange.com/questions/29881/stop-wordpress-from-hardcoding-img-width-and-height-attributes

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.