Support » Plugins and Hacks » [Resolved] set column as heading with scope="row"

[Resolved] set column as heading with scope="row"

  • I’d like to see an option to designate a column as a heading. Sometimes the cells in first column in a table ought to be coded as <th> rather than <td>, and with a scope attribute (scope=”row”). This indicates the proper relationship between the cell in the first column and the other cells in that same row. It also aids non-sighted users to navigate and understand the table. An example would be a schedule where the first column is a date, and the other columns contain data relevant to each date.

    Is this possible right now?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg



    thanks for your post, and sorry for the trouble.

    Using <th> elements in the first column is possible by adding a parameter to the Shortcode:

    [table id=123 first_column_th=true /]

    This will however not add the scope="row" attribute, as that’s not implemented at the moment.


    Ah, great! I was looking for this on the settings screen, and did not expect it to be among the optional shortcode params. Supporting the scope attribute would be nice, but in this case it’s not nearly as important as the <th>. Thank you!

    Plugin Author TobiasBg



    no problem, you are very welcome! 🙂 Good to hear that this helped!
    I made this a Shortcode parameter and not a checkbox option because it will just confuse most users (many of which won’t even care what a <th> is).

    Best wishes,

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] set column as heading with scope="row"’ is closed to new replies.