Title: Hide empty table
Last modified: March 8, 2021

---

# Hide empty table

 *  Resolved [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * (@ldeschenes)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/hide-empty-table/)
 * Hi,
 * The default behavior when there is no data to display is to show the header and
   a sentence “Aucune donnée disponible dans le tableau” (in french version).
 * Is there a way in this case to show nothing (hide header and text) ?
 * Thanks in advance!

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

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/hide-empty-table/#post-14154193)
 * Hi ldeschenes,
 * Thank you for your interest in wpDataTables.
 * Unfortunately, that is not possible with the built-in features of the plugin.
   It requires some custom code. Our plugin core functionality is based on the [Datatable jQuery plugin](https://datatables.net/)(
   except the Simple table) and there are some examples on this [link](https://stackoverflow.com/questions/19296736/how-to-make-invisible-datatable-when-there-is-no-data)
   how you can achieve this.
 * Best regards.
 *  Thread Starter [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * (@ldeschenes)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/hide-empty-table/#post-14155346)
 * Hi,
 * Thanks for the quick answer.
 * Not sure what you means by “Simple table”. I am not using any Title, Sort, Filter,
   Search, etc. If that would be a “Simple table”, how could I do it (code snippet,
   css) ?
 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/hide-empty-table/#post-14159520)
 * Hi ldeschenes,
 * When you have this massage, we know that you create a table with the second option“
   Creating a table linked to an existing data source”,(see [https://ibb.co/0BVS9Gd](https://ibb.co/0BVS9Gd))
   because those messages for the empty table are only shown on tables based on 
   datatables functionality like is explained above.
 * Simple tables do not have that functionality and you can create it with the first
   option in the table wizard. More about this you can read in our docs about [How to create a Simple table with wpDataTables](https://wpdatatables.com/documentation/creating-new-wpdatatables-with-table-constructor/creating-a-simple-table-with-wpdatatables/)
 * So you can find a lot of code examples on the link above about this.
 * Best regards.

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

The topic ‘Hide empty table’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/hide-empty-table/#post-14159520)
 * Status: resolved