Hi,
thanks for your post, and sorry for the trouble.
For the positioning:
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
For the “Custom CSS”: If you could save the CSS but it just didn’t work, there’s probably a CSS priority conflict. Putting the CSS in your theme CSS is fine then!
Regards,
Tobias
Hello Tobias
My website is still in Coming Soon mode, would this image help https://criptoficina.com/wp-content/uploads/2017/11/table.jpg ?
Just another question, is that possible to deactivate the fixed column when changing to phone screen? I meant, I activate it and it works in all devices, it works well in desktop device however when I open this in smartphone it hides the whole table only showing the fixed columns (I fixed the first and last columns). If it isn’t possible don’t worry I will manage it in other way.
Thanks in advance and thanks for this great table.
Hi,
no, sorry, the screenshot will not help, as I can’t inspect the page’s code with that 🙁
As for the fixed columns: No, sorry, I’m not aware of a way to turn this off on small screens 🙁
Regards,
Tobias
Hello Tobias
don’t worry, I’ll manage it…
let’s just one last try, hahaha, I know is possible to hide columns (CSS display: none), so my question is:
is it possible to a user does them show up again pressing the button colvis (or other way)?
I don’t know if I was clear, what I need is just keep one or more columns hidden until someone press the colvis button to show it up.
I hope you understand my explanation 🙂
Thanks in advance.
Hi,
for that, you would need to hide them using the DataTables JS library, and not with JS.
For that, add a “Custom Command” on the table’s “Edit” screen, like
"columnDefs": [ { "visible": false, "targets": [ 2, 3, 5 ] } ]
Regards,
Tobias
Hi Tobias
great stuff… thanks for letting me know.
I found this datatables documentation https://datatables.net/extensions/responsive/examples/column-control/classes.html very interesting.
Is there a way to do this in your table? I see I have to add classes to each column to make the responsive columns hide on only on tablet/mobile devices.
Thanks
Samuel.
Hi,
yes, this could also be added via such a “Custom Command”. You would just have to extract the relevant parts from inside the Datatable() call on these demo sites.
For some inspiration, you could also check out https://ww.wp.xz.cn/support/topic/defining-columns-to-collapse-1?replies=12 or https://ww.wp.xz.cn/support/topic/collapse-extension-breaking-point?replies=6
Regards,
Tobias
Hello Tobias
thanks a million, it helps me!
Best Regards,
Samuel
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 here in the plugin directory. Thanks!