Similar to row, you may often want to delete specific columns from your WordPress tables to make them cleaner, reducing clutteredness.
This article will show you how to delete a column from a table in WordPress in two easy ways.
- Method 1: Delete Columns from the default Table Block
- Method 2: Delete Columns from the Tableberg Block
Create Beautiful Tables
With Block Editor
Method 1: Delete Columns from a Table Created with the Default Table Block
Hope you have a table ready created with the default table block. Similar to the above method, place your cursor on the column you want to delete.
Hit the Edit Table icon on the toolbar. Then, click the Delete column option. This will remove the selected column.
Method 2: Delete Columns from a Table Created with the TableBerg Plugin
The TableBerg plugin allows you to create multi-purpose and versatile tables in WordPress. Below is a dummy table created with the plugin. If your table is built with the plugin, you can delete its column in the following way.
Place your cursor on the column you want to delete. Hit the Edit Table icon on the toolbar. Click the Delete column option after that. This will delete the specific column from the table.
We wanted to delete the Ratings column from the table. You can see the row is no longer on the table.
Final Words!
After the column is deleted, your table may look narrow compared to the page margin. As a result, you may need to change the alignment of the table. Here’s an article on how to align tables in WordPress.