Title: Adding code to images
Last modified: August 20, 2016

---

# Adding code to images

 *  [Candace](https://wordpress.org/support/users/aunrea/)
 * (@aunrea)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-code-to-images/)
 * I want to be able to add extras divs and styling to images in posts by using 
   template files only. Is there a function I can add to the function.php file that
   will allow me to change how the images are displayed in a post?

The topic ‘Adding code to images’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Candace](https://wordpress.org/support/users/aunrea/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/adding-code-to-images/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
