How to Add a Header to a Table in WordPress

A table header is the top row of a table. It provides a title for information in each column. While creating a table, we tend to bold the top row manually to pass a visual signal of the information that respective columns contain.

The table header does the same thing. Plus, it carries a kind of HTML code beneficial for your content from the SEO perspective. We’ll now show you how to add a header to a table in WordPress.

Create Beautiful Tables
With Block Editor

Method 1: Adding a Header to the Default Table Block

Create a table first using the Gutenberg Table block. Once the table is ready, select it by placing it on any of its cells. You’ll get the Settings tab on the right sidebar.

Toggle on the Header section under the Settings tab.

Add heading to the default WordPress table

You’ll see the header section appeared on the table.

Header section appeared on the default WordPress table

You can see we’ve added titles to the header cells of the table. You don’t need to bold them manually because they automatically get bold.

Titles added to the header cells of the default WordPress table

Method 2: Adding a Header to the Tableberg Block

If your table is created with the Tableberg plugin, you can add a header to it in the same way.

Select your table first by clicking on the Tableberg icon (1). From the Settings tab (2), toggle on the Insert Header (3) option.

You’ll see the header section enabled for the table. You may just add some text to label the columns or add other blocks as you wish.

You can also make your top row as header. Simply toggle on the Make Top Row Header option.

It will turn the top row as the header.

If you want, you can also change the table header background color. Just click on the Styles tab (1) and change the Header Background Color (2).

Conclusion

Thus, you can add headers to your WordPress tables. Remember to keep your headers descriptive but concise so they don’t take up much space. Unless they are clear and meaningful, users will fail to understand the column’s purpose of the table at first glance.



The Tableberg Team