Tables

Tables are a great way to display certain kinds of information.

Table Shortcode Parameters

The parameters for the tables shortcode:

  • Bordered (bordered): If this parameter is set to “yes” then all the table cells will have borders. The default is table without any borders.
  • Striped (striped): If this parameter is set to “yes” then all the non-heading table rows will alternate between a white background and a light gray background. The default is a non-striped table.
  • Full-Width (full): If this parameter is set to “yes” then the table will automatically fill to 100% of the available space. The default is a table that only takes up the width it needs.

Table Shortcode Examples

Basic Table

Col 1 Col 2
Data 1 Data 2
Data 3 Data 4
[efstable]
[efstable_head]
[efstable_row]
[efsth_column]Col 1[/efsth_column]
[efsth_column]Col 2[/efsth_column]
[/efstable_row]
[/efstable_head]
[efstable_body]
[efstable_row]
[efsrow_column]Data 1[/efsrow_column]
[efsrow_column]Data 2[/efsrow_column]
[/efstable_row]
[efstable_row]
[efsrow_column]Data 3[/efsrow_column]
[efsrow_column]Data 4[/efsrow_column]
[/efstable_row]
[/efstable_body]
[/efstable]
Copy Code to Clipboard

Bordered Table

Col 1 Col 2
Data 1 Data 2
Data 3 Data 4
[efstable bordered="yes"]
[efstable_head]
[efstable_row]
[efsth_column]Col 1[/efsth_column]
[efsth_column]Col 2[/efsth_column]
[/efstable_row]
[/efstable_head]
[efstable_body]
[efstable_row]
[efsrow_column]Data 1[/efsrow_column]
[efsrow_column]Data 2[/efsrow_column]
[/efstable_row]
[efstable_row]
[efsrow_column]Data 3[/efsrow_column]
[efsrow_column]Data 4[/efsrow_column]
[/efstable_row]
[/efstable_body]
[/efstable]
Copy Code to Clipboard

Striped Table

Col 1 Col 2
Data 1 Data 2
Data 3 Data 4
[efstable striped="yes"]
[efstable_head]
[efstable_row]
[efsth_column]Col 1[/efsth_column]
[efsth_column]Col 2[/efsth_column]
[/efstable_row]
[/efstable_head]
[efstable_body]
[efstable_row]
[efsrow_column]Data 1[/efsrow_column]
[efsrow_column]Data 2[/efsrow_column]
[/efstable_row]
[efstable_row]
[efsrow_column]Data 3[/efsrow_column]
[efsrow_column]Data 4[/efsrow_column]
[/efstable_row]
[/efstable_body]
[/efstable]
Copy Code to Clipboard

Full-Width Table

Col 1 Col 2
Data 1 Data 2
Data 3 Data 4
[efstable full="yes"]
[efstable_head]
[efstable_row]
[efsth_column]Col 1[/efsth_column]
[efsth_column]Col 2[/efsth_column]
[/efstable_row]
[/efstable_head]
[efstable_body]
[efstable_row]
[efsrow_column]Data 1[/efsrow_column]
[efsrow_column]Data 2[/efsrow_column]
[/efstable_row]
[efstable_row]
[efsrow_column]Data 3[/efsrow_column]
[efsrow_column]Data 4[/efsrow_column]
[/efstable_row]
[/efstable_body]
[/efstable]
Copy Code to Clipboard

Combination Table

Col 1 Col 2
Data 1 Data 2
Data 3 Data 4
[efstable striped="yes" bordered="yes" full="yes"]
[efstable_head]
[efstable_row]
[efsth_column]Col 1[/efsth_column]
[efsth_column]Col 2[/efsth_column]
[/efstable_row]
[/efstable_head]
[efstable_body]
[efstable_row]
[efsrow_column]Data 1[/efsrow_column]
[efsrow_column]Data 2[/efsrow_column]
[/efstable_row]
[efstable_row]
[efsrow_column]Data 3[/efsrow_column]
[efsrow_column]Data 4[/efsrow_column]
[/efstable_row]
[/efstable_body]
[/efstable]
Copy Code to Clipboard