• Resolved ericcool

    (@ericcool)


    Hi,

    Could you please have a look of my website.

    I’ve actived DataTables FixedHeader plugin and use the following short code but it does not work.

    [table id=2 datatables_fixedheader=top datatables_fixedheader_offsettop=60 /]

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please check if the “Use DataTables” checkbox is checked on the table’s “Edit” screen? That’s mandatory for the FixedHeader to work. The individual features, like search and sorting, can however be turned off, if you don’t want to use those.

    Regards,
    Tobias

    Thread Starter ericcool

    (@ericcool)

    I just tested the “Use DataTables” and I see the difference.

    1. This one is with “Use DataTables” and it works normally.
    https://www.finetec.com.tw/test/

    2. This one with “Use DataTables” is checked and insert fixed header in short code but does not wrok:
    [table id=4 datatables_fixedheader=top datatables_fixedheader_offsettop=60 /]

    https://www.finetec.com.tw/test2

    • This reply was modified 3 years, 10 months ago by ericcool.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for checking that.

    On the /test2 page, I now do see several JavaScript errors in the browser’s error log console. These essentially stop the evaluation of JavaScript in the browser, so that the TablePress functions are never loaded.

    One reason for this could be the heavy “inlining” of JavaScript code on the site. This likely breaks some dependencies. Could you maybe turn that off in whatever caching/optimization plugin you are using?

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘DataTables FixedHeader does not work’ is closed to new replies.