How to stop featured image (post thumbnail) from having width and height in html (2 posts)

  1. michaelhisten
    Posted 3 years ago #

    I am using a featured image (a.k.a. post thumbnail) in my posts, and unfortunately the HTML code automatically adds the width/height properties -- I would prefer they be left blank as I am specifying size with CSS so the image scales to fit the viewport (I've created my own responsive theme). I can override this with width/height being set to "auto," but is there a way to have the featured image show up without size being set in the HTML itself?


  2. Michael
    Forum Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic