Plugin Author
samsk
(@samsk)
Should work with ‘fixedHeader: true’.
[wp-datatable id="ID"]
paging: false,
responsive: true,
search: true,
//.. and more - see https://datatables.net/reference/option for full reference
// enable fixed header
fixedHeader: true,
[/wp-datatable]
-
This reply was modified 8 years, 9 months ago by
samsk.
Thank you for the response! Where exactly should I add “fixedHeader: true” ? I’m new to WordPress and can’t quite figure this out.
@samsk – I still have yet to figure this out. Could you direct as to where I need to add “fixedHeader: true”?
Plugin Author
samsk
(@samsk)
There is an example in my previous reply showing how to use fixedHeader.
Please, read datatables documentation, before asking.
@samsk Wow! I’m sorry you assumed that I didn’t read the original information you replied with. As I stated above, I’m new to WordPress and am having a hard time figuring this out. I’m sorry that I’m not smart enough to read this information and understand it completely. The techy language is usually over my head but, nevertheless, I’ve still been tasked with this. I actually read quite a bit of information from DataTables.net and I couldn’t find anywhere where it says “where” to enter this coding in WordPress. I don’t see anywhere in WordPress where it refers to DataTables…except in the FixedHeader plugin. Do I just edit the plugin? Or maybe I need to download another plugin? Or download something else?
If you aren’t up to the task of guiding me, I totally understand. Just let me know.
Plugin Author
samsk
(@samsk)
See my code example in first reply.
Once again:
[wp-datatable id="ID"]
paging: false,
responsive: true,
search: true,
//.. and more - see https://datatables.net/reference/option for full reference
// ENABLE FIXED HEADER <================================
fixedHeader: true,
// =====================================================
[/wp-datatable]
Datatables is configured within plugin tags. This is an advanced plugin for advanced users, sorry no GUI for configuring it – Datatables framework is too powerful and complicated for having a simple gui.