Title: jjpare's Replies | WordPress.org

---

# jjpare

  [  ](https://wordpress.org/support/users/jjpare/)

 *   [Profile](https://wordpress.org/support/users/jjpare/)
 *   [Topics Started](https://wordpress.org/support/users/jjpare/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jjpare/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jjpare/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jjpare/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jjpare/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jjpare/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Adding an extra class to post images](https://wordpress.org/support/topic/adding-an-extra-class-to-post-images/)
 *  Thread Starter [jjpare](https://wordpress.org/support/users/jjpare/)
 * (@jjpare)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-an-extra-class-to-post-images/#post-1756891)
 * **Alchymyth:** Thank you!
    That was totally what I was looking for.
 * I’m still at that stage where I can read and repurpose existing PHP and Java 
   script, but not so much writing it from scratch. So this was a huge help. 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Adding an extra class to post images](https://wordpress.org/support/topic/adding-an-extra-class-to-post-images/)
 *  Thread Starter [jjpare](https://wordpress.org/support/users/jjpare/)
 * (@jjpare)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-an-extra-class-to-post-images/#post-1756875)
 * no, not quite. what I’m looking to do is to add a whole new class to the images
   in the HTML, not just manipulating what already exists with CSS.
 * For example, in the HTML, WordPress adds this to an image tag:
    `<img class="
   aligncenter size-large wp-image-129"...` What I want to do is to add another 
   qualifier to the image class called ’tilt’.
 * You see, certain elements on the site (heads and images) get rotated slightly
   between -2 and 2 degrees. But the rotation is controlled randomly. I add a random
   number generator to the functions that control those elements that creates and
   adds a new series of classes between ’tilt0 and ’tilt5′.
 * I’ve managed to do this for all the other elements I need to, but I can’t figure
   out the function that adds those classes (‘aligncenter’, ‘size-large’, etc.) 
   to the images. It does appear that the _get\_image\_tag_ function in the **media.
   php** file is the one that does it, but I can’t quite figure out how to take 
   control of it. And it doesn’t help that there is absolutely no mention of the
   get_image_tag filter anywhere in the codex, and that other forum queries on the
   subject have received almost no response whatsoever.
 * If it makes any difference in the answer, what I’m working on is a child theme
   of Thematic.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Any way to stop Gallery Shortcode from including the Featured Image?](https://wordpress.org/support/topic/any-way-to-stop-gallery-shortcode-from-including-the-featured-image/)
 *  Thread Starter [jjpare](https://wordpress.org/support/users/jjpare/)
 * (@jjpare)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/any-way-to-stop-gallery-shortcode-from-including-the-featured-image/#post-1627151)
 * Aah — maybe not “ideal” since it has to be done manually every time I create 
   a gallery, but a definite solution nonetheless.
    Thanks!

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