Title: attribute removal
Last modified: August 18, 2016

---

# attribute removal

 *  Resolved [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/)
 * I’ve got near to 1000 posts all with images in my blog. I’m using css and img
   to control my image attributes, but I need to be able to disable or remove all
   of the height attributes in the posts for this to work properly.
 * Does anyone know anyway to do this without going through each post and changing
   the html?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488132)
 * I’m creating a completely liquid WP theme, but I’ve got near to 1000 posts and
   images and I’m need to remove the height attributes from all of the img’s for
   it to work. It neededs to be some sort of automated WP plugin that can remove
   all of the heights from old posts and stop new post from having a height. The
   img is controlled by CSS.
 * img { width: 100%; height: inherit; }
 * I need this <img src=”images/filename.jpg”> not this <img width=”350″ height=”
   200″ border=”0″ title=”filename” alt=”filename” src=”images/filename.jpg” />
 * Everything between img and src commented out.
 * Anyone any ideas?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488136)
 * this is about the only plugin thats even going to come close do doing that.
 * [http://thedeadone.net/?p=183](http://thedeadone.net/?p=183)
 * (that im aware of, atleast)
 * If that doesnt do the trick, you might want to just write your own sql query 
   and do it straight from phpmyadmin.
 *  Thread Starter [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488144)
 * Thanks I’ll see what I can do with it, but what would be ideal would be if there
   was some way to automatically insert a <!– after the ‘<img’ and –> before ‘src
   =’
 * I’m not thinking straight I can use the search and replace to switch <img for‘
   <img <!–‘ and so on.
 * I just need to find a way to stop attributes being put in new posts now.
 * Any more good ideas?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488147)
 * whatever attributes are being automatically applied to images is the reuslt of
   whatever youre using to add images to to your posts. Basically youre going to
   need to edit the output of whatever fucntions(s) is/are being used.
 * Without knowing if youre using some media manager plugin, or the standard wp 
   upload thing for images, its hard to say much more, and even then, I dont have
   time to track down the exact files you would need to change.
 * there arent alot of files in wp-admin/
 * I would start with looking at inline-uploading.php
 *  Thread Starter [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488150)
 * Thank 🙂
 * I’ve just checked back to see if you had replied and I’ve figured it out.
 * I use imageManager I just took out the height and width attributes from the plugin.
 * All sorted.
 *  Thread Starter [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488153)
 * Ummm…
 * Does anyone know where to look to stop the WYSIWYG editor insert image button
   from inserting Height and Width.
 *  Thread Starter [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488155)
 * Ok I’ve never messed with the TinyMCE before can anyone confirm for what I want
   to do, is that on line 2595 of wp-includes/js/tinymce/tiny_mce.js I just remove
   width, height, from that line.
 *  Thread Starter [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488160)
 * OK sorted again just delete the image for the TinyMCE image button and force 
   people to use ImageManager

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘attribute removal’ is closed to new replies.

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [img](https://wordpress.org/support/topic-tag/img/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 8 replies
 * 2 participants
 * Last reply from: [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/attribute-removal/#post-488160)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
