Title: Remove image attributes
Last modified: August 20, 2016

---

# Remove image attributes

 *  [Rahendra Putra K™](https://wordpress.org/support/users/rahendz/)
 * (@rahendz)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/remove-image-attributes/)
 * hi guys.. hope i didn’t wrong thred to find some help..
 * to the point, is there any way to remove image height
 * and width attribute from generated image tag of the_post_thumbnail
 * or get_the_post_thumbnail function.. i need to remove it
 * because i’ve to make my header ( my related thumbnail post goes
 * to header ) auto resize conditionally based on browser size. even
 * i know what to do with css, but i’ve to remove it.. or there is
 * some thread that has been discuss it yet? thanks before..

The topic ‘Remove image attributes’ is closed to new replies.

## Tags

 * [image attribute](https://wordpress.org/support/topic-tag/image-attribute/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [Rahendra Putra K™](https://wordpress.org/support/users/rahendz/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/remove-image-attributes/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
