Title: Modify wordpress gallery code?
Last modified: August 21, 2016

---

# Modify wordpress gallery code?

 *  [JProductions](https://wordpress.org/support/users/jproductions/)
 * (@jproductions)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/modify-wordpress-gallery-code/)
 * Is there any way I can add a small snippet of code to the wordpress generated
   gallery image links?
 * All I want is for the wordpress gallery links to generate the `<a>` links with
   a class section such as follows:
    `<a class="img_frame" .../>`
 * I know there are plugins to create other image lightboxes, but those create an
   incompatibility with my current theme. My theme has its built in lightbox, but
   it does not work with the native wordpress galleries. I have searched through
   a ton of wordpress core files to try and find this, but pretty much came up empty
   handed with my limited php know how.
 * Thanks you anyone that can give me some insight.

The topic ‘Modify wordpress gallery code?’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [image](https://wordpress.org/support/topic-tag/image/)

 * 0 replies
 * 1 participant
 * Last reply from: [JProductions](https://wordpress.org/support/users/jproductions/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/modify-wordpress-gallery-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
