Title: Add class to table element
Last modified: September 1, 2016

---

# Add class to table element

 *  [ScottyChoc](https://wordpress.org/support/users/scottychoc/)
 * (@scottychoc)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/add-class-to-table-element/)
 * Is it possible to inject class names into the table markup?
    eg. `<table id="
   usertable" class="widefat userlist my-custom-class">`
 * [https://wordpress.org/plugins/amr-users/](https://wordpress.org/plugins/amr-users/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/add-class-to-table-element/#post-7712856)
 * No.
    Any particular reason you can’t use the id or class provided?
 * or if you want all tables to look the same – just style the table element.

Viewing 1 replies (of 1 total)

The topic ‘Add class to table element’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amr-users_f6f6f4.svg)
 * [amr users](https://wordpress.org/plugins/amr-users/)
 * [Support Threads](https://wordpress.org/support/plugin/amr-users/)
 * [Active Topics](https://wordpress.org/support/plugin/amr-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amr-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amr-users/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [anmari](https://wordpress.org/support/users/anmari/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/add-class-to-table-element/#post-7712856)
 * Status: not resolved