---
title: "How to customize the &#8220;No matching records found&#8221; text"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview-pro/datatables/how-to-customize-the-no-data-available-in-table-text/"
---

The information provided in this article **only applies** to Views using the DataTables layout. If you are using another layout, please take a look at [this other article instead](https://www.gravitykit.com/docs/gravityview/customizing-your-views/modifying-the-text-displayed-when-there-are-no-entries/).

If you'd like to customize the text "No matching records found" when your DataTables table is empty, you could use the plugin hook `gravityview/datatables/config/language` as follows:

```
// Replace empty table label, default: "No matching records found"
add_filter( 'gravityview/datatables/config/language', 'my_gv_datatables_labels', 10, 1 );
function my_gv_datatables_labels( $labels ) {
	$labels['emptyTable'] = 'My new label when there are no results.';
	return $labels;
}
```

```
// Replace empty table label, default: "No matching records found"
add_filter( 'gravityview/datatables/config/language', 'my_gv_datatables_labels', 10, 1 );
function my_gv_datatables_labels( $labels ) {
	$labels['emptyTable'] = 'My new label when there are no results.';
	return $labels;
}
```

Read here how to add these code samples to your website: [Where to put code samples.](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/)