> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mainwp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Limit the amount of table entries in the Pro Report sections

> If you have a lot of Plugin updates or Backups performed during a particular time period, it may be desirable to limit the number of entries shown in the report sections. Learn how to configure table entry limits in Pro Reports.

## What You'll Learn

* Adding CSS IDs to report table sections
* Writing CSS to limit displayed rows
* Customizing the number of entries shown
* Uploading modified templates

***

<Info>
  **Extension Add-on** - This add-on provides standalone functionality within MainWP Dashboard. No third-party plugins required.
</Info>

If you have a lot of Plugin updates or Backups performed during a particular time period, it may be desirable to limit the number of entries shown in the report. This can be accomplished by making small changes in a copy of a Pro Reports template PHP file.

<Note>
  If you are editing one of the built-in report templates, first create a custom copy. Otherwise, a Pro Reports Extension update can overwrite your changes. To learn more about creating and editing a custom template, see [Create Custom Report Templates](/add-ons/agency/create-custom-report-templates).
</Note>

## Example for Backup data section

In this example, we will cover how to limit the entries in the Backups section to 5, but the same logic applies to other data sections. In the Backups Data section, attach a CSS ID to the table body (`<tbody>`), as shown here:

<img src="https://mintcdn.com/mainwp/fe8MDk8Na8l3lQHZ/images/add-ons/pro-reports-table-css-id.png?fit=max&auto=format&n=fe8MDk8Na8l3lQHZ&q=85&s=11d7a0d7deaf2ba3f9162e9f39185221" alt="PHP template with CSS ID attached to backup table body" width="1245" height="754" data-path="images/add-ons/pro-reports-table-css-id.png" />

Then, inside the `<style type="text/css">` section near the top of the PHP file, add the following:

```css theme={null}
#backuptable tr { display:none; }
#backuptable > tr:nth-child(-n+5){ display: table-row; }
```

Change the `5` in these brackets `(-n+5)` to a desired number of entries to be shown.

<img src="https://mintcdn.com/mainwp/fe8MDk8Na8l3lQHZ/images/add-ons/pro-reports-css-limit-rows.png?fit=max&auto=format&n=fe8MDk8Na8l3lQHZ&q=85&s=c0e0fe2734724d85a513885e5aab1a5b" alt="CSS code limiting table rows to display only 5 entries" width="806" height="579" data-path="images/add-ons/pro-reports-css-limit-rows.png" />

Save the changes to the PHP file and upload it to **/wp-content/uploads/mainwp/report-templates/**.

<img src="https://mintcdn.com/mainwp/fe8MDk8Na8l3lQHZ/images/add-ons/pro-reports-template-directory.png?fit=max&auto=format&n=fe8MDk8Na8l3lQHZ&q=85&s=934171c71997449e0afe042544f9d6a4" alt="Report template upload directory path" width="657" height="399" data-path="images/add-ons/pro-reports-template-directory.png" />

***

## Related Resources

* [Create Custom Report Templates](/add-ons/agency/create-custom-report-templates) - Build custom PHP templates
* [Pro Reports Extension](/add-ons/agency/pro-reports-extension-overview) - Main Pro Reports documentation
* [Available Pro Reports Tokens](/add-ons/agency/available-pro-reports-tokens) - Complete token reference
