Integration with Frontend Gallery Slider For ACF
-
Hi There – Follwing another thread here –
I have a problem that inside quic view I am trying to add a Frontend Gallery Slider For ACF.
It is based on slick slider.
But I don’t know how to call the js files.
or how to make it work –
Ican see the slides but I think that the issue is that it doesn’t load the js.
Any help will be greatly appreciated!!!!I tried this but that doesn’t work – ( alert does work )
add_action( 'wp_enqueue_scripts', 'mycustom_scripts_quick_view', 100 ); function mycustom_scripts_quick_view(){ $script = "jQuery(document).on('qv_loader_stop', function(){ <script src=get_stylesheet_directory_uri() .'/js/slick.min.js'></script> });"; wp_add_inline_script( 'yith-wcqv-frontend', $script ); }
This is the code from the plugin itslef tath I think is in charge of loading the scripts –
add_action( 'wp_enqueue_scripts','fagsfacf_style_css' ); function fagsfacf_style_css() { wp_enqueue_style( 'fagsfacf_style', plugin_dir_url( __FILE__ ) . 'assets/css/slick.css', array(), FAGSFACF_VERSION); // Registring slick slider script if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) { wp_register_script( 'wpos-slick-jquery', FAGSFACF_VERSION_URL.'assets/js/slick.min.js', array('jquery'), FAGSFACF_VERSION, true ); wp_enqueue_script( 'wpos-slick-jquery' ); } wp_register_script( 'fagsfacf-public-jquery', FAGSFACF_VERSION_URL.'assets/js/public.js', array('jquery'), FAGSFACF_VERSION, true ); wp_enqueue_script( 'fagsfacf-public-jquery' ); }
Thank you so much for this great plugin – Guy
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Integration with Frontend Gallery Slider For ACF’ is closed to new replies.