=== WP Responsive Tables ===
Contributors: suifengtec
Donate link: http://coolwp.com/wp-responsive-tables.html
Tags: table, responsive,responsive table
Requires at least: 4.3
Tested up to: 4.7.1
Stable tag: 4.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Responsive tables by given css selectors.
== Description ==
Responsive tables by given css selectors.
== Installation ==
Install it as normal.
= Usage =
output tables as following:
`
产品参数
| 货号 |
形状 |
重量 |
颜色 |
切工 |
抛光 |
对称 |
荧光 |
证书 |
| c128 |
祖母绿 |
0.82 |
G |
GD |
VG |
VG |
Faint |
统包货 |
| 货号1 |
形状1 |
重量1 |
颜色1 |
切工2 |
抛光3 |
对称3 |
荧光3 |
证书3 |
| c128 |
祖母绿 |
0.82 |
G |
GD |
VG |
VG |
Faint |
统包货 |
`
= Add table selectors =
Type your table selectors directly in the following method:
`
public static function get_table_selectors(){
$r = array(
'#tab-description table#aaa',
'#tab-description table#sss',
);
return apply_filters('coolwp_responsive_table_selectors', $r );
}
`
Load your table selectors by using the filter hook `coolwp_responsive_table_selectors`.
= Tips =
It works fine when `wp_is_mobile()` return `true` by default, you can use hook `coolwp_responsive_table_enabled` filter it.
== Frequently Asked Questions ==
= It does not work? =
* You should tell it selectors of your tables!
* It's working for mobile devices and tablets.
* Your table is missing some elements.
== Screenshots ==
1. mobile devices
2. tablets
3. desktop
== Changelog ==
= 1.0 =
* initial release.
== Upgrade Notice ==
null.