Hi. We are trying to use jQuery to Change "No matching records found" at bottom of empty table on a page, but no matter what we do it does not seem to change. Help would be appreciated.
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
-
I will share a workaround of how you can change this.
If you simply wish to change the text displayed when there are no rows / matching records found,
there is a PHP file in the plugin that you can edit with any text/code editor, in this path:
This does not help as it would change the result for all tables on all pages. We need to change the text for a single table on one page. We were attempting to use the language setting using Jquery for a single table but no matter what we did it would not take.
It would be nice if this were simply a setting on the table page under Customize.
to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
Hi. We are trying to use jQuery to Change "No matching records found" at bottom of empty table on a page, but no matter what we do it does not seem to change. Help would be appreciated.
Hi, Make Freedom
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
-
I will share a workaround of how you can change this.
If you simply wish to change the text displayed when there are no rows / matching records found,
there is a PHP file in the plugin that you can edit with any text/code editor, in this path:
/wp-content/plugins/wpdatatables/source/class.wdttools.php
Right now the line is 547, but since we often update the plugin, the line might change in the future,
so it is best to use "Ctrl+F" to search for this string : 'sZeroRecords' and find this :
Here is my example :
Then, edit the line inside the brackets, and change it to anything you need,
in this example "No invoices found", so the line will be
And this is the result, in one of my Test Tables :
You can also use an image, if you wish.
We had a user who used an image, instead of the "No matching records found" :
So, if you devise an image that has text on it,
you can simply add a HTML image tag, with the image source, like this for example :
- Just to note, any time you update the wpDT plugin, it will overwrite the PHP file again;
so, you will have to repeat this with the PHP code edit.
-
Let me know if that helps.Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
This does not help as it would change the result for all tables on all pages. We need to change the text for a single table on one page. We were attempting to use the language setting using Jquery for a single table but no matter what we did it would not take.
It would be nice if this were simply a setting on the table page under Customize.
Hi, Make Freedom
Apology for the late reply.
-
I can completely understand what you mean and the need for setting it up individually for each table for a use-case like this,
but at this time, we don't have any way to achieve this,
you can suggest it for our developers - they will do their best to make a built-in solution in the future.
Please feel free to search on our suggestions page,
to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
$('#example').dataTable( {
"language": {
"emptyTable": "No data available in table"
}
} );
We were hoping to use the above but it does not work...
Hi, Make Freedom
Thank you for that example, i will pass that along with other details of what you are trying to achieve,
and our developers will advise on that.
As soon as they check everything i will report back immediately. Thank you for your patience.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, Make Freedom
Firstly my sincere apology for the waiting time.
We have an update from our developers.
They advised that there is a way you could try with our front-end callbacks.
With these, it is possible to "target" each table individually ( table_1, table_2, and so on, depending how many tables are on the front-end page)
, just the function inside the callback itself, you could write something like this :
They believe that this should be a solution.
Let us know if that works for your use-case.
Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables