Title: DataTables FixedHeader does not work
Last modified: May 24, 2021

---

# DataTables FixedHeader does not work

 *  Resolved [ericcool](https://wordpress.org/support/users/ericcool/)
 * (@ericcool)
 * [5 years ago](https://wordpress.org/support/topic/datatables-fixedheader-does-not-work/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatatables-fixedheader-does-not-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years ago](https://wordpress.org/support/topic/datatables-fixedheader-does-not-work/#post-14477485)
 * 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](https://wordpress.org/support/users/ericcool/)
 * (@ericcool)
 * [5 years ago](https://wordpress.org/support/topic/datatables-fixedheader-does-not-work/#post-14478172)
 * 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/](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](https://www.finetec.com.tw/test2)
    -  This reply was modified 5 years ago by [ericcool](https://wordpress.org/support/users/ericcool/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years ago](https://wordpress.org/support/topic/datatables-fixedheader-does-not-work/#post-14479247)
 * 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.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/datatables-fixedheader-does-not-work/#post-14479247)
 * Status: resolved