Using a custom table template file

When using the Reviewer Tables plugin you may find yourself in a need to create a custom table template file for one or more tables that you’ve created. Its is very easy to use a custom template file, below are the options to override the existing template.

For both options below it is recommended to copy the contents of the original template. That can be used as a basis so it is known how to get the related data.

Override all tables

To override the default template you can easily create a new file named table.php in the reviewer/ folder within your (child) theme folder. This works in a similar way as how you’d override any of the Reviewer core templates.

Override a specific table template

If you only want to change the template of a specific table you can also create a new file, but this time add the table ID to it as entered when creating the table. So create a file like:

themes/my-theme/reviewer/table-my-table-id.php

 

Leave your feedback