How to create a "Custom swiper Slider Widget" with required swiperjs lib from elementor core? #18554
datgausaigon
announced in
Developers Community
Replies: 3 comments 6 replies
-
Use |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi, // In foo.php
public function widget_scripts() {
wp_register_script( 'swiper', ELEMENTOR_ASSETS_URL . '/lib/swiper/swiper.js', [ 'jquery' ], false, true );
}
// bar.php
public function get_script_depends() {
return ['swiper'];
} I will try and testing with this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @avivu
Thanks |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want create "Custom Slider Widget" (Elementor Widget Addon Plugin). This Slider is created by swiperjs.
How do I declare the slider to depend on swiperjs in elementor core? When widget add to a page/post it will check available of elementor swiperjs and add it.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions