Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Simple Responsive Tables Plugin

The Simple Responsive Tables Plugin is for Grav CMS. It wraps tables in a div, enabling them to be scrolled vertically on small screens.

It wraps <table> HTML outputs:

	  <td>Cell 1</td>
	  <td>Cell 2</td>

with two <div> elements, like this:

<div class="simple-responsive-table">
	      <td>Cell 1</td>
	      <td>Cell 2</td>

It also provides basic styling to indicate that the table can be scrolled. This functionality requires JavaScript to be enabled. Otherwise the tables are still scrollable, but it is not visually indicated.


Installing the Simple Responsive Tables plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:

bin/gpm install simple-responsive-tables

This will install the Simple Responsive Tables plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/simple-responsive-tables.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to simple-responsive-tables. You can find these files on GitHub or via

You should now have all the plugin files under


NOTE: This plugin is a modular component for Grav which requires Grav and the Error and Problems to operate.


Before configuring this plugin, you should copy the user/plugins/simple-responsive-tables/simple-responsive-tables.yaml to user/config/plugins/simple-responsive-tables.yaml and only edit that copy.

Here is the default configuration and an explanation of available options:

enabled: true                # Set to false to disable this plugin completely
active: false                # Option to (de-)activate this plugin on a page


After installing and enabling the plugin, it is deactivated by default. You now can activate it on a page per page basis by setting the activeconfig to true in the frontmatter:

    active: true

If you do have a lot of pages with tables you can enable the plugin for the entire site, by setting the active flag to true in user/config/plugins/simple-responsive-tables.yaml.
It is also possible to deactivate the functionality on certain pages, by setting the config to false again in the frontmatter.


The plugin is inspired and based on the following works: