• Resolved politadvokat

    (@politadvokat)


    DataTables Counter Column was working perfectly until I decided that I don’t need the first row of my table to be the table header. When I went to the table setting and unchecked “The first row of the table is the table header”, DataTables Counter Column stopped working and there is just an empty column now where it used to be numbers.
    If I activate the table header feature again – DataTables Counter Column works again.
    But is there a way to use DataTables Counter Column without using the table header?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter politadvokat

    (@politadvokat)

    And once again, I’ve already found the solution to my problem. I’ve noticed that you’ve already mentioned that Javascript works only if the head-row is enabled, in the bottom where we can edit the table you have put these words relating to JavaScript features “These features and options are only available, when the “Table Head Row” checkbox in the “Table Options” section is checked.”

    So I found this solution: I will just leave the first row empty so it won’t take too much space and the table itself will look like there is no head-row

    Or better, I think I should try to hide it using Custom CSS and it will solve the problem completely by using “display: none;” option

    Again, sorry for the meaningless thread where I explained my problem and then found a solution myself. Next time I will make sure that I devoted more time to thinking before posting a question.

    Thread Starter politadvokat

    (@politadvokat)

    Yes, it works, siply by adding

    .tablepress-id-123 .row-1 {
    display: none;
    }

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Indeed, simply hiding the header row with that CSS code is the best solution here 🙂

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘DataTables Counter Column won’t work if the first row is the table header’ is closed to new replies.