Tobias,
This is probably a better use of the plugin/coding, using custom command
columnDefs: [ { targets: [ 2,4 ], visible: false, className: 'none' } ]
I get: http://www.cetabase.org/2016/08/21/responsive-with-column-def-custom-command/
But again, running into issues with the table being responsive.
Thanks in advance for your help!
Marie
Hi,
thanks for your question, and sorry for the trouble.
Using the Responsive Tables Extension and its collapse mode is probably the best solution here.
Then, you could try playing with those CSS class names, as you already did. Unfortunately, I’m not too familiar with this and can only suggest taking a look at the examples like https://wordpress.org/support/topic/defining-columns-to-collapse-1?replies=12 or https://wordpress.org/support/topic/collapse-extension-breaking-point?replies=6
Regards,
Tobias
Hi Tobias
Can you take a look at this page http://www.cetabase.org/2016/08/21/responsive-with-column-def-custom-command/
The Custom Command works well to designate the columns to collapse, but the table is too wide when I minimize my browser (see the example)
I read through the threads you supplied and this does help with designating the rows to expand, but the table overlaps the post container when the browser is minimized.
Any ideas how to help with this? Would CSS be able to keep the table width within the post itself?
Hi,
I see what you mean, but I don’t really know why this happens 🙁 I can only assume that the DataTables JS library has problems properly calculating some widths…
One idea could be trying this “Custom CSS”:
.tablepress {
box-sizing: border-box;
}
Regards,
Tobias