Title: altering automatic image code and href code.
Last modified: August 18, 2016

---

# altering automatic image code and href code.

 *  [wellofdreams](https://wordpress.org/support/users/wellofdreams/)
 * (@wellofdreams)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/altering-automatic-image-code-and-href-code/)
 * When you upload an image, you then click on it and hit ‘send to edit box’ (or
   something similar), and poof, it sends the code.
 * Is there a way of editing the code it sends, so that (for example) every time
   I hit ‘send to edit box’ the code has border=”0″ in it?
 * Same goes for the link button; can I alter it so that it automatically adds a
   target=_blank ?

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

 *  Thread Starter [wellofdreams](https://wordpress.org/support/users/wellofdreams/)
 * (@wellofdreams)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/altering-automatic-image-code-and-href-code/#post-326155)
 * bump
 *  [heyrsmith](https://wordpress.org/support/users/heyrsmith/)
 * (@heyrsmith)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/altering-automatic-image-code-and-href-code/#post-326158)
 * wellofdreams:
    this is easy to do if you use the [Iimage Browser](http://fredfred.net/skriker/index.php/iimage-browser)
   plugin. With Iimage browser you can do several things that desire: you can manually
   edit the code before you send it to the editor, you can write your own custom
   code that is inserted automatically with a simple button click, or using the 
   hack that I wrote a while back you can have a variety of buttons in the editor
   that each write a different code wrapper for the image depending on which radio
   button you select. You can find it [here](http://wordpress.org/support/topic/52612?replies=16#post-288760).
 * As a bonus, you can also use a custom directory structure to organize you images
 *  Thread Starter [wellofdreams](https://wordpress.org/support/users/wellofdreams/)
 * (@wellofdreams)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/altering-automatic-image-code-and-href-code/#post-326257)
 * Great, thankyou!
 *  Thread Starter [wellofdreams](https://wordpress.org/support/users/wellofdreams/)
 * (@wellofdreams)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/altering-automatic-image-code-and-href-code/#post-326259)
 * Hang on, this doesn’t do what I want either. In a very roundabout sort of way(
   i.e. it takes twice as long as just using the WP upload feature) you can get 
   it to generate a code for you, but it’s still just a generic code which doesn’t
   include “border=0″ or my <div class=”photo”> tag; I still have to add that every
   time.
 * Can someone direct me to the file and place in the WP root file where I can add
   that, so it shows up as default, maybe?
 *  [feverinlove](https://wordpress.org/support/users/feverinlove/)
 * (@feverinlove)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/altering-automatic-image-code-and-href-code/#post-326435)
 * bump

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

The topic ‘altering automatic image code and href code.’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [feverinlove](https://wordpress.org/support/users/feverinlove/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/altering-automatic-image-code-and-href-code/#post-326435)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
