Is it possible to enable responsive table (collapse) after a certain breakpoint?
-
Hi
I have installed TablePress and the Responsive Tables extension plugins. I have created a table and added it to my site with the following shortcode: [table id=1 responsive=”collapse” /]
My problem is that I would like the table to “fully collapse” after a specific breakpoint but haven’t found a way to do it. Now in smaller screens it is still showing more than one columns (while the rest are hidden and only visible after clicking the plus icon). It’s really silly in some tables that have four colums and on mobile screens it shows three and hides only one. I’d like to ALWAYS show only one column (the first one) and have all the others hidden in mobile screens (so you would have to click the plus icon to see the rest). Is this doable? Picture of the problem: https://imgur.com/FgD5NTn
Other problem I have is that I would like the shortcode to always include the responsive=”collapse” -part because if the people updating the content on the site add a new table with the “Add table” -button (in wysiwyg editor) they certainly won’t understand that they should always manually edit the shortcode to include the responsive=”collapse” part. So is there anyway I could force the shortcode to always have the responsive=”collapse” part included automatically?
- The topic ‘Is it possible to enable responsive table (collapse) after a certain breakpoint?’ is closed to new replies.