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.

Method 01: How to Add a Header to a Default WordPress Table

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 default WordPress table. Add column titles to the header cells.

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 02: How to Add a Header to the TableBerg Tables

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 any cell of the table.

Toggle on the Enable Table Header option on the right sidebar under the Settings tab.

Add a header to the table created with the TableBerg plugin

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.

Add content to the header section of the table created with the TableBerg plugin

You can see that we’ve added labels to the header cells of the table.

Labels added to the header cells

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Early Bird Offer Is Live Now!
This is default text for notification bar