• Resolved hmsproducts

    (@hmsproducts)


    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 TobiasBg

    (@tobiasbg)

    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.

    Regards,
    Tobias

    Thread Starter hmsproducts

    (@hmsproducts)

    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 TobiasBg

    (@tobiasbg)

    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.