Title: Default image insertion code
Last modified: August 19, 2016

---

# Default image insertion code

 *  [ambithium](https://wordpress.org/support/users/ambithium/)
 * (@ambithium)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/default-image-insertion-code/)
 * Where is the default code that is inserted by the image uploader/browser in the
   editor located? On each image, I’ve wrapped it with a div and a caption, the 
   markup ending up as
 * `
    <div class="box caption left"><img />
   
   Caption</div>
 * How do I modify the code that’s inserted by the editor to include my wrapped 
   content?
 * I thought I had located it by editing /wp-admin/js/upload.js but this didn’t 
   affect the code.
 * Thanks!

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

 *  [Glenn Ansley](https://wordpress.org/support/users/blepoxp/)
 * (@blepoxp)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/default-image-insertion-code/#post-684836)
 * You should look into using WordPress hooks via plugin development. That would
   help you. If you have to find the code, use grep or wingrep.
 *  [fuddes](https://wordpress.org/support/users/fuddes/)
 * (@fuddes)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/default-image-insertion-code/#post-685054)
 * Bump.
 * I’d also like to know where to find the default code inserted by the image uploader/
   browser in the editor.

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

The topic ‘Default image insertion code’ is closed to new replies.

 * 2 replies
 * 3 participants
 * Last reply from: [fuddes](https://wordpress.org/support/users/fuddes/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/default-image-insertion-code/#post-685054)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
