datatable js are not loaded
-
The Tablepress plug works and it is possible to instert new tables. What doesn’t work is user sorting and selecting. The cause being that the required js scripts are not included. If I add this to my template it works:
<script src="/wp-content/plugins/tablepress/js/jquery.datatables.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($){ $('#tablepress-11').dataTable({"order":[],"orderClasses":false,"stripeClasses":['even','odd'],"pagingType":"simple"}); }); </script>But that probably is not the idea of the plugin.
How do I make sure that the datatable macros work?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘datatable js are not loaded’ is closed to new replies.