Hi,
thanks for your question, and sorry for the trouble.
I see what you mean, but you will need a slightly different way. To turn off filtering for the second and third column, you can add this to the “Custom Commands” text field on the table’s “Edit” screen:
"columnDefs": [ { "searchable": false, "targets": [ 1, 2 ] } ]
(the 1 and 2 mean the second and third column here, because counting starts with 0).
Regards,
Tobias
Super!! Thank You very much!!!
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!
Hello TobiasBg,
I really love this plugin,
i have added this short code as
[table id= 194 responsive=scroll datatables_fixedheader=top “columnDefs”: [ { “searchable”: false, “targets”: [ 1, 2 ] } ] /]
But its not working. I could have inserted it badly, kindly show me the right format
Hi,
thanks for your post, and sorry for the trouble.
The problem in this Shortcode is that “Custom Command”
"columnDefs": [ { "searchable": false, "targets": [ 1, 2 ] } ]
The Shortcode is the wrong place for that. Please put this into the “Custom Commands” text field on the table’s “Edit” screen.
Regards,
Tobias