Making Table Views accessible to screen readers with row headers
The Table layout’s Use this field as a row header setting marks one column of a GravityView table as the label for each row, so screen readers announce that value as context for every other cell.
Note: Row headers need GravityView 3.1 or newer and apply to Views on the Table layout.
What row headers are #
In a member directory, a reader who wants someone’s phone number finds the row for “Jane Smith” and reads across. The name anchors everything else in that row.
A screen reader user doesn’t get that anchor by default. GravityView’s Table layout marks the top row (Name, Email, Phone) as column headers, and every cell below it is a plain data cell. Someone moving down the Phone column with a screen reader hears bare values (“555-0142… 555-0198… 555-0177”) with no sign of whose numbers they are, and has to move back across each row to the name.
A row header fixes that. When one column is marked as the row header, screen readers treat its cells as the label for their whole row. Moving through the table, the user hears the identifying value announced together with each cell, for example: “Jane Smith, Phone, 555-0142”. Whatever cell they land on, they know which record it belongs to.
The exact announcement varies between screen readers (NVDA, JAWS, and VoiceOver each phrase it slightly differently), but all of them use row headers to provide this context.
When to use row headers #
Enable the setting on the one field that identifies each record in your View:
- A member or staff directory: the Name field
- A job board: the Job title field
- An equipment inventory: the Asset ID field
- A support log: the Ticket number field
A few things to keep in mind:
- Enable it for one field per row. A row has one label, and several row headers give screen readers conflicting context.
- Nothing changes on the page. Sighted visitors see the same table.
- Labeled data tables are part of WCAG success criterion 1.3.1 (Info and Relationships), which automated checkers and manual auditors look for.
How to enable a row header #
- Edit your View (it must use the Table layout).
- In the Multiple Entries tab, click the gear icon on the field that identifies each row (for example, Name).
- In the field settings panel, check Use this field as a row header.
- Click Update to save the View.

The setting applies the next time the View loads.
What changes in your table’s markup #
HTML separates header cells (<th>) from data cells (<td>), and the scope attribute tells assistive technology what a header cell labels. With the setting on, GravityView prints that column’s cells as <th scope="row"> instead of <td>:
<tr>
<th scope="row">Jane Smith</th>
<td>jane@example.com</td>
<td>555-0142</td>
</tr>The scope="row" attribute is what tells screen readers to announce “Jane Smith” as context for the email and phone cells in that row. No custom code, template overrides, or CSS changes are involved.
How screen readers name your View #
From GravityView 3.5.0, screen readers use the View’s title to name the View’s parts on the page. A View titled “Faculty list” has its search form announced as “Search, Faculty list”, its entries as “Results, Faculty list”, and its page links as “Pagination, Faculty list”.
The title is the one you give the View in the View editor, so a title written for yourself, such as “Faculty list (home page copy)”, is read to visitors who use a screen reader. Give the View a title that makes sense on the page, or set a different one with the gk/gravityview/view/accessible-title filter. This example names View 31 “Faculty”:
add_filter( 'gk/gravityview/view/accessible-title', function ( $title, $view ) {
if ( 31 === (int) $view->ID ) {
return 'Faculty';
}
return $title;
}, 10, 2 );Note: Where to put code samples explains how to add this snippet to your site.