Please wait...

When customizing wpDataTables for your own usage, you might find that the default position of those elements is not quite to your liking. You have to modify some code in the core of plugin.

Example to move info block above the table is to edit the plugin file. In file ../wp-content/plugins/wpdatatables/source/class.wpdatatable.php around line 2690 find:

$obj->dataTableParams->sDom = "BT<'clear'>{$showRowsPerPage}{$globalSearch}{$scrollable}{$infoBlock}p";

and replace it with:

$obj->dataTableParams->sDom = "B{$infoBlock}T<'clear'>{$showRowsPerPage}{$globalSearch}{$scrollable}p";

If you want info block at the top and bottom of the grid, replace it with:

$obj->dataTableParams->sDom = "B{$infoBlock}T<'clear'>{$showRowsPerPage}{$globalSearch}{$scrollable}{$infoBlock}p";

each letter stands for the different block. Our plugin is based on Datatables jQuery plugin and more details about DOM positioning you can check on this link.

Note: If you made this changes it will be overwritten on the next update so you have to change it again.

Yes you can do that by changing some code in file ../wp-content/plugins/wpdatatables/source/class.wpdatatable.php and around line 2800 you can find

'orientation' => 'portrait',

and replace it with

'orientation' => 'landscape',