Title: Responsive table not working after adding custom code to hide column
Last modified: August 31, 2016

---

# Responsive table not working after adding custom code to hide column

 *  Resolved [Daniel](https://wordpress.org/support/users/rawreef/)
 * (@rawreef)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/)
 * Hi Tobias
 * I have a table [on this page](http://englishcamponline.com/pronounce-20-common-words/)
   which is not responsive when I shrink my browser window. It seems to be because
   I’ve added some custom code to hide one column by default when the page loads.
 * If you check [this other page](http://englishcamponline.com/mistakes-in-english/),
   you’ll see that the table there is fully responsive, even with the colvis shortcode
   applied. But with the table here, I haven’t added any custom code to hide a column.
   So I think that’s the problem with the table on the other page.
 * Perhaps this is a bug?
 * Anyway, if you have a solution then great, but I quite understand this is probably
   a rare use case, so of course it’s no problem at all if you’d rather focus on
   squashing more mainstream bugs 🙂
 * I really appreciate everything about your great plugin: the design, the time-
   saving features, the ease of organising tables, and lots more!
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221388)
 * Hi,
 * thanks for your post, and sorry for the trouble as well as for the late reply.
   I’ve been on holidays and therefore couldn’t reply earlier.
 * That’s indeed strange, and on first glance, I can’t see the reason for this 🙁
 * Regards,
    Tobias
 *  Thread Starter [Daniel](https://wordpress.org/support/users/rawreef/)
 * (@rawreef)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221389)
 * Hi Tobias
 * Thanks for replying. I think the problem may be because I’m trying to use wpDataTables
   as well as TablePress on my website. This was working previously quite well, 
   as long as I didn’t put a wpDataTables table and a TablePress table on the same
   page. Unfortunately, I’ve now lost all the search/sort/hide columns capabilities
   from all my TablePress tables across the whole site.
 * Unfortunately, even disabling wpDataTables hasn’t sorted my TablePress tables
   out, so it looks like I might have to do a fresh install of WordPress and start
   again 🙁
 * …so the moral of the story seems to be: don’t even attempt to use TablePress 
   and wpDataTables on the same site.
 * Thanks for taking a look at the problem, though.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221390)
 * Hi,
 * yes, this could be the cause then 🙁 I think that wpDataTables applies some CSS
   code to all tables instead of just its own, but I’m not sure.
 * Regards,
    Tobias
 *  Thread Starter [Daniel](https://wordpress.org/support/users/rawreef/)
 * (@rawreef)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221391)
 * Hi Tobias,
    If I find a good solution, I’ll make sure I post back here again.
   I’ve added a #wpDataTables tag to this thread as well.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221392)
 * Hi,
 * sounds good! I hope that you can find the cause!
 * Best wishes,
    Tobias
 *  Thread Starter [Daniel](https://wordpress.org/support/users/rawreef/)
 * (@rawreef)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221397)
 * Hi Tobias
 * Here’s a page where the JavaScript Datatables aren’t working. I’ve enabled searching
   on this table, but the search box isn’t showing up on the frontend.
 * I’ve currently disabled the wpDataTables plugin, but it somehow still seems to
   be affecting my TablePress tables.
 * Will you need access to the backend to look at this properly?
 *  Thread Starter [Daniel](https://wordpress.org/support/users/rawreef/)
 * (@rawreef)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221398)
 * Sorry, forgot the link:
 * [http://englishcamponline.com/which-that-panama-papers-bernie-sanders/](http://englishcamponline.com/which-that-panama-papers-bernie-sanders/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221399)
 * Hi,
 * thanks! I found something now: You are basically affected by this: [https://wordpress.org/support/topic/search-sort-not-showing?replies=6#post-8282519](https://wordpress.org/support/topic/search-sort-not-showing?replies=6#post-8282519)
   
   Could you please check that?
 * Regards,
    Tobias
 *  Thread Starter [Daniel](https://wordpress.org/support/users/rawreef/)
 * (@rawreef)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221400)
 * Hi Tobias
 * Thanks! That was exactly the problem. I’ve even been able to switch wpDataTables
   back on and both tables plugins are working. I’m just not going to risk using
   them both on the same page.
 * Cheers
    Daniel
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221401)
 * 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/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘Responsive table not working after adding custom code to hide column’
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/)

 * 10 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/responsive-table-not-working-after-adding-custom-code-to-hide-column/#post-7221401)
 * Status: resolved