Title: Hide header when using datatables
Last modified: May 4, 2018

---

# Hide header when using datatables

 *  Resolved [frequentmiler](https://wordpress.org/support/users/frequentmiler/)
 * (@frequentmiler)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/hide-header-when-using-datatables/)
 * Hi,
    I am showing just one column of a table and would like to hide the header
   row. The problem is that I am also using datatables so that users can filter 
   and page-next. Datatables doesn’t seem to work with a hidden header row.
 * I suppose I could hide it by setting the header’s colors to transparent, but 
   I’m wondering if there’s a better option?

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/hide-header-when-using-datatables/#post-10254054)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Yes, there’s a better option, we can simply hide the header using some CSS code.
   For that, please add this to the “Custom CSS” textarea on the “Plugin Options”
   screen of TablePress:
 *     ```
       .tablepress-id-123 thead {
         display: none;
       }
       ```
   
 * Just change the table ID 123 as necessary.
 * Regards,
    Tobias
 *  Thread Starter [frequentmiler](https://wordpress.org/support/users/frequentmiler/)
 * (@frequentmiler)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/hide-header-when-using-datatables/#post-10255955)
 * That worked perfectly. Thanks so much.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/hide-header-when-using-datatables/#post-10256986)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   here in the plugin directory. Thanks!

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

The topic ‘Hide header when using datatables’ 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/)

## Tags

 * [datatables](https://wordpress.org/support/topic-tag/datatables/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/hide-header-when-using-datatables/#post-10256986)
 * Status: resolved