Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

How to make a table responsive in wpDataTables

Say your product table has six columns: product, category, price, stock, supplier and rating. On a phone, six columns don’t fit, so the text gets squeezed or the table runs off the screen. A responsive table shows only the most important columns on mobiles and tablets, for example product and price, and moves the other values into a row that visitors expand with one tap. It works for every table type. You can turn it on with Tabella AI or in the table settings, and then choose which columns to hide on each device.

How do I make a table responsive with Tabella AI?

Open the table, click Ask Tabella AI and ask for responsiveness first, then for the columns to hide, one request per message.

  1. Open the table. Go to wpDataTables → wpDataTables and click the table title.
  2. Turn on responsiveness. Click Ask Tabella AI and type, for example: Make this table responsive.
  3. Hide columns. In a new message, type, for example: Hide the Supplier column on mobiles.
  4. Check and save. After each request, read the reply of Tabella AI and check the preview. Click Save Changes to keep the changes, or Undo table changes to go back.

How do I make a table responsive in the table settings?

Turn on Responsiveness in the Display tab, then mark the columns to hide on mobiles and tablets in their column settings.

  1. Open the table. Go to wpDataTables → wpDataTables and click the table title.
  2. Turn on responsiveness. In the Display tab, turn on Responsiveness (Allow collapsing on mobiles and tablets).
  3. Choose how rows expand. In Responsive action, next to it, choose how visitors open the hidden values, for example Icon.
  4. Open a column’s settings. In the table preview, click the settings icon in the header of a column you want to hide on small screens.
  5. Hide the column. In the Display tab of the column settings, turn on Collapse column on mobile devices under Hide on mobiles, Collapse column on tablet devices under Hide on tablets, or both. Repeat for the other columns.
  6. Save the table. Click Save Changes.
The Display tab of a wpDataTables table with Responsiveness turned on and Icon as the responsive action, and the Supplier column settings with Hide on mobiles and Hide on tablets turned on
Hiding a column on small screens, shown as overlapping panels: (1) Responsiveness in the Display tab, (2) Responsive action, (3) Hide on mobiles, (4) Hide on tablets, (5) Save Changes.

To check all columns at once, click Column List above the preview. In the Columns window, each column has a tablet icon and a phone icon, and the icon is greyed out when the column is hidden on that device.

Leave at least one column visible on mobiles and at least one on tablets. Otherwise the table has no column to show the expand button in.

How does a responsive table look on a phone?

On a phone, the table shows only the columns that are not hidden on mobiles, and the hidden values open below the row when the visitor taps the expand button, the row or a cell, with the control set in Responsive action. Tablets work the same way with the columns hidden on tablets, and desktops show all columns.

To check it without a phone, open the page on the front end and make your browser window narrow, or use the device mode in your browser’s developer tools.

A wpDataTables table on a phone-sized screen showing only the Product column, with the second row expanded to show its hidden Category, Stock and Supplier values
A responsive table on a small screen: (1) the visible Product column, (2) the button that expands a row, (3) the hidden values of the expanded row.

What should I remember about responsive tables?

Ask Tabella AI to make the table responsive, or turn on Responsiveness in the Display tab. Then hide the less important columns with Hide on mobiles and Hide on tablets, choose how rows expand, and keep at least one column visible on each device. The hidden values stay one tap away.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box