Hi,
that code has to go into the “Custom Commands” field in the “Features of the DataTables JavaScript library” section on the table’s “Edit” screen, so none of the two that you mentioned.
Yes, you will then have to include a Themeroller CSS file (and the images into your site). I think there are already plugins for this.
To center words in cells, you can use some “Custom CSS” like this:
.tablepress-id-123 .column-3 {
text-align: center;
}
This would center all cells in the third column of table 123.
To display lines (borders) in a table, use this:
.tablepress-id-123 thead th,
.tablepress-id-123 tbody td {
border: 1px solid #000000;
}
And yes, I’m aware that adding links in large tables is kind of ugly right now. I had tried to use a scroll mechanism, but that didn’t really work. Instead, you could try a work around with the “Advanced Editor”: Click into a cell while holding down the “Shift” key. That will open the “Advanced Editor”, which also has an “Insert link” button. This solution might need a few more clicks, but at least less scrolling.
Regards,
Tobias