WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] set column as heading with scope="row" (4 posts)

  1. buckthorn
    Member
    Posted 4 months ago #

    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?

    https://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    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.

    Regards,
    Tobias

  3. buckthorn
    Member
    Posted 4 months ago #

    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!

  4. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    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,
    Tobias

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

Reply

You must log in to post.

About this Plugin

About this Topic