-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtablepress-responsive.php
More file actions
32 lines (29 loc) · 964 Bytes
/
tablepress-responsive.php
File metadata and controls
32 lines (29 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Plugin Name: TablePress Responsive Stacked
* Description: Makes TablePress tables responsive by converting them into stacked layout on mobile.
* Version: 1.1
* Author: Custom Plugin by Nikolay Djemerenov
* Author URI: https://nikweb.eu
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: tablepress-responsive
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
// Enqueue custom JavaScript and CSS
function tablepress_responsive_scripts() {
wp_enqueue_script(
'tablepress-responsive-js',
plugin_dir_url( __FILE__ ) . 'tablepress-responsive.js',
array(),
'1.1',
true
);
wp_enqueue_style(
'tablepress-responsive-css',
plugin_dir_url( __FILE__ ) . 'tablepress-responsive.css',
array(),
'1.1'
);
}
add_action( 'wp_enqueue_scripts', 'tablepress_responsive_scripts' );