Title: Adding a class to a gallery
Last modified: August 30, 2016

---

# Adding a class to a gallery

 *  [Dave2084](https://wordpress.org/support/users/dave2084/)
 * (@dave2084)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-a-class-to-a-gallery/)
 * Is it possible to add a class to a galley through the shortcode so that I can
   add custom CSS to style galleries differently?
 * I know I can wrap them in a div or span (which is what I’m doing) but adding 
   a class to the shortcode would be much cleaner.
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

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

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-a-class-to-a-gallery/#post-6265069)
 * Hi Dave,
 * I agree that adding classes as a shortcode option would be useful and I’ll add
   it to our items to consider including in a future release.
 * Thanks for the sugestion!
    -Dan
 * PS: If you’ve found this plugin useful, please take a moment to [rate it](http://wordpress.org/support/view/plugin-reviews/document-gallery#postform).
   Thanks! 🙂
 *  Thread Starter [Dave2084](https://wordpress.org/support/users/dave2084/)
 * (@dave2084)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-a-class-to-a-gallery/#post-6265141)
 * Already 5 star rated 🙂
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-a-class-to-a-gallery/#post-6265240)
 * Thanks! For your records, an enhancement issue has been created in our issue 
   tracker here: [https://github.com/thenadz/document-gallery/issues/21](https://github.com/thenadz/document-gallery/issues/21).
 *  Thread Starter [Dave2084](https://wordpress.org/support/users/dave2084/)
 * (@dave2084)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/adding-a-class-to-a-gallery/#post-6265416)
 * Any progress on this?
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/adding-a-class-to-a-gallery/#post-6265417)
 * Hi Dave,
 * This has unfortunately not made it into a scheduled release yet. It’s not particularly
   challenging to develop, but there are just a number of higher priority items.
   The one taking the most time is adding support for MS Office file thumbnail generation(
   [https://wordpress.org/support/topic/notice-google-drive-viewer-not-working](https://wordpress.org/support/topic/notice-google-drive-viewer-not-working)).
   Until that is done, DG development time will likely be limited.
 * Sorry for the delay! :/
 * -Dan
 *  Thread Starter [Dave2084](https://wordpress.org/support/users/dave2084/)
 * (@dave2084)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/adding-a-class-to-a-gallery/#post-6265418)
 * No problem!
 * I only asked as I added the plugin to a new site that I’m developing yesterday
   and would have liked this feature as it will need a number of different gallery
   styles but I can still use a div wrapper to achieve the same result.
 * Having MS Office Thumbnails is definitely a higher priority!

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

The topic ‘Adding a class to a gallery’ is closed to new replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Dave2084](https://wordpress.org/support/users/dave2084/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/adding-a-class-to-a-gallery/#post-6265418)
 * Status: not resolved