Title: Images in  Elements
Last modified: August 21, 2016

---

# Images in Elements

 *  Resolved [NickStrong](https://wordpress.org/support/users/nickstrong/)
 * (@nickstrong)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/images-in-elements/)
 * I’ve been trying to include a captioned image within an <h3> element, like –
 * > <h3>[caption id="attachment_1459" align="alignleft" width="300"]<img class=”
   > size-medium wp-image-1459″ alt=”xxxxxx” src=”[http://xxxxxx/yyyyyy.jpg&#8221](http://xxxxxx/yyyyyy.jpg&#8221);
   > width=”300″ height=”172″ /> Xxxxxx[/caption]Xxxxx</h3>
 * Unfortunately, although this produces exactly the layout I need, WP strips it
   out at the first opportunity, changing it to –
 * >  [caption id="attachment_1459" align="alignleft" width="300"]<img class=”size-
   > medium wp-image-1459″ alt=”xxxxxx” src=”[http://xxxxxx/yyyyyy.jpg&#8221](http://xxxxxx/yyyyyy.jpg&#8221);
   > width=”300″ height=”172″ /> Xxxxxx[/caption]
   >  <h3>Xxxxx</h3>
 * which is completely different.
 * I have the PS Disable Auto Formatting plugin installed, but it obviously doesn’t
   touch this particular problem.
    What do I need to do, to keep my code the way
   I want it?
 * Grateful for any suggestions, thanks in advance.

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

 *  [Rod Whiteley](https://wordpress.org/support/users/rod-whiteley/)
 * (@rod-whiteley)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/images-in-elements/#post-4073650)
 * I tried it, and it looks like the visual editor, not WordPress itself, is changing
   the code. When I choose “Disable the visual editor when writing” in my profile,
   the code doesn’t change.
 *  Thread Starter [NickStrong](https://wordpress.org/support/users/nickstrong/)
 * (@nickstrong)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/images-in-elements/#post-4073652)
 * ah – thank you.

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

The topic ‘Images in Elements’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [NickStrong](https://wordpress.org/support/users/nickstrong/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/images-in-elements/#post-4073652)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
