=== Make Tables Responsive === Contributors: nnikolov Tags: tables, responsive, mobile Requires at least: 3.5 Tested up to: 5.0.2 Requires PHP: 5.3.6 Stable tag: 1.2.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Automatically makes the HTML tables in your posts and pages responsive (mobile-friendly). == Description == Automatically makes the HTML tables in your WordPress posts and pages responsive (mobile-friendly). Devices with a small screen will see the tables in a new layout with two columns. In the first column will be the data from the first row (the column names), and in the second column will be the data from the other rows. = Demo = [https://nikolaydev.com/demo-of-make-tables-responsive/](https://nikolaydev.com/demo-of-make-tables-responsive/) = Features = * Choose the maximum screen size to affect * Choose the cell background color for even and odd rows * Choose the cell border color for even and odd rows * Disable for tables by HTML class or ID * Disable for posts and pages by ID * Enable only for posts and pages by ID = Important Limitations = * Only supports tables, in which the first row contains the column names (you need to exclude the other ones from the settings) * Tables with merged cells are not supported (and are skipped) * Tables inside tables are not supported (and the whole page/post is skipped) * Tables in which only some columns use "th" tags (instead of "td") are not supported (and are skipped) * If the cells with the column names (the first row) contain HTML code, it will be stripped in the responsive version == Installation == Simply install and activate the plugin, like you would any normal plugin. 1. Visit your [Plugins Add New Screen](https://codex.wordpress.org/Plugins_Add_New_Screen) 2. Find the plugin by searching for: Make Tables Responsive 3. Install the plugin, by clicking the "Install Now" button 4. Activate the plugin, by clicking the "Activate" button == Frequently Asked Questions == = Why it is not working? = If the plugin sees any tables that it does not support, it will skip them, leaving them unchanged. See the limitations section above, for more details. If you still need help, use the support forum. == Screenshots == 1. Using the Firefox responsive design view tool to see how a HTML table looks like without the plugin and with the plugin. 2. The settings page of the Make Tables Responsive plugin. == Changelog == = 1.2.0 - 01 January 2018 = * Added: An option to hide the "tfoot" tag from the responsive version of the tables. * Improved: The explanation of the current limitations of the plugin in the Readme.txt file. * Fixed: Sometimes we could not detect that there is a table inside a table (we still skip the whole page/post when we do). * Fixed: We didn't detect merged cells in "th" tags. Now we detect them and skip the table (since we still do not support them). * Fixed: Incorrect detection of the column names and count when "th" tags are used somewhere in the table but not in the first row. * Fixed: We now skip tables that have "th" tags only in some columns. * Fixed: We now support tables that use "th" tags in whole rows even if it is not the first row (and on other rows use "td" tags). * Fixed: Sometimes the plugin skipped a table that is supported. * Updated: Language file. = 1.1.2 - 31 October 2018 = * Fixed: How tables with just one row are handled. The plugin still does not support those, but instead of them disappearing on smaller screens, now the plugin just skips them and shows them unchanged. = 1.1.1 - 27 June 2018 = * Fixed: A missing closing curly bracket in the CSS code. It didn't affect anything though, since the tag was closed after it anyway. = 1.1.0 - 20 June 2018 = * Added: The option to enable the responsive tables only on some chosen posts or pages. * Added: The option to disable styling. This is useful if you are adding your own CSS code and my code is taking priority because it uses the !important rule. * Improved: The wording on some options to be more clear. * Fixed: A bug that caused a body HTML tag to be added inside the tables. * Updated: Language file. = 1.0.0 = * Initial release.