开发者 | mlchaves |
---|---|
更新时间 | 2022年12月18日 15:44 |
捐献地址: | 去捐款 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.1.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/ashtabula
directory, or install the plugin through the WordPress plugins page directly.You can override the ashtabula.js
file. Here's an example.
Add this to your child theme's functions.php file.
/** Override Swiper Slider Plugin JS */ function override_ssp_js() { wp_dequeue_script('ashtabula'); wp_enqueue_script('swiper-slider-custom-js', get_stylesheet_directory_uri().'/js/swiper-slider-custom.js', '', '1.0.0', true); } add_action('wp_enqueue_scripts', 'override_ssp_js', 100);
Create this file: /js/swiper-slider-custom.js
. Add this code to the file. It will override the default plugin settings for Swiper.js.
`
/**