WP Responsive Tables

By suifengtec

10+ active installationsVersion 1.0.0

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.

FAQ

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

Changelog

1.0

  • initial release.