Title: Table Role
Last modified: November 8, 2017

---

# Table Role

 *  Resolved [hmsproducts](https://wordpress.org/support/users/hmsproducts/)
 * (@hmsproducts)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/table-role/)
 * Is there a way to set “role=’presentation'” for a layout table in TablePress?
   I know I can add it with jQuery, but, I would prefer not to have to do that.
 * Thanks!

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/table-role/#post-9665599)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * There’s not direct way to add this, but you could e.g. use the `tablepress_table_tag_attributes`
   filter hook that can be used to change the attributes of the `<table>` element.
   The filter is defined in [class-render.php](https://github.com/TobiasBg/TablePress/blob/master/classes/class-render.php#L519).
 * Regards,
    Tobias
 *  Thread Starter [hmsproducts](https://wordpress.org/support/users/hmsproducts/)
 * (@hmsproducts)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/table-role/#post-9667689)
 * Tobias,
 * First, you have a great plugin that’s easy for users to manage. The import/export
   feature is especially helpful.
 * Thanks for the quick response. Adding the option to apply the table role might
   be good for a future release. For many industries, WCAG adherence is becoming
   more and more important and since some use tables for layout rather than HTML(
   because it’s easy for them), there needs to be a way to apply the role.
 * Thanks for a great plugin and keep up the good work.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/table-role/#post-9667940)
 * Hi,
 * yes, this is indeed a very important topic, and I do plan to add more support
   for it in the future! I just need to learn more about it first, to be able to
   implement this properly.
 * Does the suggestion with the filter hook work for you?
 * Regards,
    Tobias

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

The topic ‘Table Role’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [Presentation](https://wordpress.org/support/topic-tag/presentation/)
 * [wcag](https://wordpress.org/support/topic-tag/wcag/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/table-role/#post-9667940)
 * Status: resolved