Table of Contents
How to fix columns in a wpDataTables table
Say you compare 40 hotels in a table with 20 columns, from the city and stars to the spa, the pool and the price. When visitors scroll sideways, they lose the hotel name on the left and the price on the right. With fixed columns, the first and last columns you choose stay in place while the columns between them scroll. You can turn this on with Tabella AI or in the Advanced tab of the table settings.
How do I fix columns with Tabella AI?
Open the table, click Ask Tabella AI and say how many columns to fix on each side.
- Open the table. Go to wpDataTables → wpDataTables and click the table title.
- Ask Tabella AI. Click Ask Tabella AI and type, for example: Fix the first two columns on the left and the last column on the right.
- Check and save. Tabella AI lists what it changed. Click Save Changes, or Undo table changes to go back.
How do I fix columns in the table settings?
Turn on Enable fixed columns in the Advanced tab, set the number of columns for each side and save the table.
- Open the table. Go to wpDataTables → wpDataTables and click the table title.
- Open the Advanced tab. In the table settings above the preview, click Advanced.
- Turn on fixed columns. Under Fixed columns, turn on Enable fixed columns.
- Set the numbers. In Left columns numbers, set how many columns stay fixed on the left, and in Right columns numbers, how many stay fixed on the right. For the hotel table, enter 2 and 1: the city and the hotel name stay on the left, the price on the right.
- Save the table. Click Save Changes.
Fixed columns work best on wide tables that visitors scroll sideways, so they go well with a scrollable table. You can also keep the header row in view with a fixed header, and use both on the same table.
What should I remember about fixed columns?
Ask Tabella AI to fix columns, or turn on Enable fixed columns in the Advanced tab and set how many columns stay fixed on the left and on the right. Keep the columns that identify a row, such as a name, and the one visitors compare, such as a price. Fixed columns combine with a fixed header.