Title: modifying HTML output
Last modified: August 22, 2016

---

# modifying HTML output

 *  Resolved [karidemi](https://wordpress.org/support/users/karidemi/)
 * (@karidemi)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/modifying-html-output/)
 * Is there a hook for modifying the actual HTML that is wrapping the documents?
   I’ve read the documentation on dg_doc_icon, but I want to change the divs to 
   trs so I can wrap the whole thing in a table. The dg_doc_icon seems to only apply
   to the output of the documents themselves. Is there a hook to do what I ‘m describing?
 * Thanks!
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

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

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/modifying-html-output/#post-5333513)
 * Hi karidemi,
 * No such hook currently exists, but I think it’s a very reasonable request and
   one that should not be difficult to implement. I will plan to include a new hook
   in the upcoming release to support filtering the outer HTML output.
 * Thanks for the suggestion!
    -Dan
 * EDIT: Issue has been added to our issue tracker: [https://github.com/thenadz/document-gallery/issues/19](https://github.com/thenadz/document-gallery/issues/19)
 * 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 [karidemi](https://wordpress.org/support/users/karidemi/)
 * (@karidemi)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/modifying-html-output/#post-5333551)
 * Amazing! Thank you!
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/modifying-html-output/#post-5333559)
 * My pleasure! 🙂
 * Hope to get the official release out in the next ~48 hrs assuming no bugs show
   up last min.
 * -Dan

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

The topic ‘modifying HTML output’ 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/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [Modify](https://wordpress.org/support/topic-tag/modify/)

 * 3 replies
 * 2 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/modifying-html-output/#post-5333559)
 * Status: resolved