Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Blogging & content · Guide

How to Edit a Table in WordPress (Step by Step)

How to Edit a Table in WordPress (Step by Step)

Short answer

Click inside the Table block to edit any cell, then use the Edit table button in the block toolbar to insert or delete rows and columns. Open the Settings sidebar to add a header or footer row, make column widths equal and switch to striped rows. Tables made with plugins like TablePress are edited in the plugin screen.

Key takeaways

  • Click a cell to edit text and press Tab to move between cells.
  • Edit table in the toolbar adds and deletes rows and columns.
  • Header and footer rows are switched on in the sidebar.
  • Fixed width cells give columns equal widths.
  • Pasting from a spreadsheet usually creates a Table block.
  • Plugin tables such as TablePress are edited in their own screen.

How do you edit a table in WordPress?

Click inside the Table block to change cell text, use the Edit table button in the toolbar to add or delete rows and columns, and use the sidebar to change header, footer, width and style settings.

Most WordPress tables are built with the core Table block. Editing it works much like editing any other block, with a few table-only controls.

If your table was made with a plugin such as TablePress, you edit it in that plugin's own screen instead. We cover that further down.

This guide is about content tables on pages and posts. If you are dealing with database tables, see our fix for database tables that need repair instead.

Step 1: How do you change the text in a table?

Click any cell and type to change its content, then press Tab to move to the next cell or use the arrow keys to move around the table.

Cells support basic formatting such as bold, italic and links. Select text in a cell and use the block toolbar, just like in a paragraph.

You cannot place other blocks, such as images or buttons, inside a core table cell. Use simple text and links only.

The official Table block documentation shows the block and its controls.

Step 2: How do you add or remove rows and columns?

Click a cell, open the Edit table menu in the block toolbar and choose to insert a row before or after, insert a column before or after, or delete the current row or column.

The new row or column appears next to the cell you selected. Click the right cell first so it lands where you want it.

Deleting removes the row or column that contains your selected cell. Press Ctrl+Z or Cmd+Z straight away if you remove the wrong one.

Here is a quick reference for the table controls:

TaskWhere to find it
Add a rowToolbar, Edit table, insert row before or after
Add a columnToolbar, Edit table, insert column before or after
Delete a row or columnToolbar, Edit table, delete row or column
Align column textToolbar, column alignment control
Add a header or footer rowSidebar, Table settings
Equal column widthsSidebar, fixed width table cells
Striped rowsSidebar, Styles, Stripes
Add a captionBelow the table, caption area

Select the table, open the Settings sidebar and switch on Header section or Footer section to add a row that is marked up as a table header or footer.

Header rows use proper table header cells. That helps screen readers announce column names as visitors move through the data.

The W3C's tables tutorial explains why headers matter for accessibility.

A footer row suits totals or notes. Leave it off if your table does not need one.

Step 4: How do you change column alignment and width?

Click a cell in the column, use the column alignment control in the toolbar to set left, center or right, and turn on fixed width table cells in the sidebar for even columns.

Right alignment suits numbers and prices, so digits line up. Left alignment suits text.

Fixed width table cells makes all columns the same width. Without it, columns size themselves to fit their content, which can leave one very wide column.

The core block does not offer a drag handle for individual column widths. If you need precise widths, add a CSS class and a short custom CSS rule.

Step 5: How do you change the table style?

Select the table and open the Styles options in the sidebar to choose between the default look and striped rows, then set colors, typography and borders if your theme supports them.

Stripes shades every other row. It makes long tables easier to scan.

Color settings change the background and text color for the whole table. Border settings can add or remove lines around cells.

Theme styles affect tables a lot. The same table can look quite different after a theme change.

To change text size inside a table, use the Typography panel. Our guide on increasing font size in WordPress covers the options.

Step 6: How do you add a table caption?

Click below the table where it says to add a caption, then type a short description of what the table shows.

A caption gives readers context and helps screen reader users understand the table before they read it.

Keep it short, such as Plan prices compared by feature. If you use a heading above the table, a caption may not be needed.

How do you paste a table from Excel or Google Sheets?

Copy the cells in your spreadsheet and paste them into an empty paragraph in the block editor, and WordPress usually converts them into a Table block.

The pasted table keeps rows and columns but drops most spreadsheet styling. That is usually what you want, since the theme handles the look.

Check the result for merged cells or formulas. The core Table block does not support merged cells, so they may paste oddly.

For large data sets that change often, a table plugin with spreadsheet import is easier to manage.

How do you edit a TablePress table?

Go to TablePress, then All Tables in your dashboard, click Edit under the table name, change cells in the spreadsheet-style editor and click Save Changes.

TablePress stores tables separately from posts. The table appears on pages through a block or shortcode that references its ID.

That means editing the table updates every page where it appears. You do not need to touch the posts themselves.

You can also add or remove rows and columns, hide rows from visitors and sort data in the editor. The TablePress documentation explains each option and the extra features in its paid versions.

To replace all the data at once, use the Import screen and choose to replace an existing table. That is handy for price lists you keep in a spreadsheet.

TablePress on WordPress.org supports importing from CSV and Excel files, plus sorting, search and pagination for visitors.

How do you make tables work on mobile?

Keep tables narrow, limit the number of columns, and let wide tables scroll sideways inside their container instead of squashing the text.

Many themes add horizontal scrolling to tables automatically. If yours does not, a small CSS rule on the table's wrapper can add it.

Very wide tables are hard to read on phones even with scrolling. Consider splitting data into two smaller tables.

Our guide on adjusting WordPress for mobile covers this and other layout fixes.

Can you merge cells or add images to table cells?

The core Table block does not support merged cells or blocks inside cells, so use a table plugin or custom HTML if you need either.

You can edit the block as HTML and add colspan or rowspan attributes, but the editor may flag the block as invalid.

MDN's table element reference explains the HTML for merged cells and headers.

For complex tables, a Custom HTML block or a plugin is more reliable than forcing changes into the core block.

Why can't you edit your table?

You may be looking at a table from a plugin, a pattern, a template or a page builder widget, each of which has its own editing screen.

If clicking the table selects a shortcode or a plugin block, open that plugin's admin page to edit the data.

Locked blocks and synced patterns also stop changes. Our guide on how to edit a block in WordPress explains how to handle both.

If the table sits in a classic editor post, open the post in the Classic Editor and use a table plugin for the TinyMCE editor, or convert the post to blocks.

Want a list of links to headings rather than a data table? See our guide on adding a table of contents.

Frequently asked questions

How do I add a row to a table in WordPress?

Click a cell next to where you want the new row, open the Edit table menu in the block toolbar and choose to insert a row before or after. The new empty row appears straight away and you can start typing in its cells.

How do I delete a column in a WordPress table?

Click any cell in the column you want to remove, open the Edit table menu in the toolbar and choose delete column. If you remove the wrong one, press Ctrl+Z on Windows or Cmd+Z on a Mac to undo it.

Can I merge cells in the WordPress Table block?

Not with the built-in controls. The core Table block has no merge option. You can add colspan or rowspan by editing the HTML, though the editor may flag the block, or use a table plugin or Custom HTML block for complex layouts.

How do I make a WordPress table responsive?

Keep the number of columns small and let wide tables scroll sideways inside their container. Many themes add scrolling automatically. If yours does not, add a short CSS rule, or use a table plugin that offers responsive display modes.

How do I edit a table created with TablePress?

Go to TablePress, then All Tables in the dashboard, and click Edit under the table you want. Change the cells in its editor and save. Every page that shows the table updates automatically, since the data is stored in one place.

Sources

  1. Table Block WordPress.org Documentation
  2. Tables Tutorial W3C Web Accessibility Initiative
  3. The Table element MDN Web Docs
  4. TablePress WordPress.org

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.