• Hi all,
    I’m having a problem with wonderslider plugin from wordpress that when ever i want to change the slider by click event it doesn’t work.
    I had ajax call in my javascript file as this:
    jQuery.post(ajax_object.ajax_url,
    {‘action’: ‘artist_slider’,’data’: sliderID},
    function(response){
    $(‘.artist_slider’).html(response);
    jQuery(‘.wonderpluginslider-container’).wonderpluginslider();
    });
    and this is my code in functions.php:
    add_action( ‘wp_ajax_artist_slider’, ‘prefix_ajax_artist_slider’ );
    add_action( ‘wp_ajax_nopriv_artist_slider’, ‘prefix_ajax_artist_slider’ );
    function prefix_ajax_artist_slider() {
    echo do_shortcode(‘[wonderplugin_slider id=’ . $_POST[“data”] . ‘]’);
    die();
    }
    at the beginning the slider didn’t show at all and it had a white space, and then i used jQuery(‘.wonderpluginslider-container’).wonderpluginslider(); and it shown my slider but the images doesn’t show, so I thought it would be a css issue so it was given a display none but when I put it as display block it showed up but the slider didn’t work, and it gave me an errors in console saying images doesn’t exist but it is showing in thumbnails part and working perfectly in thumbnails only. while the slider itself wasn’t working. all what i know that this slider support ajax call but for me it didn’t work. would anybody help me please?

    https://wordpress.org/plugins/wonderplugin-slider-lite/

Viewing 1 replies (of 1 total)
  • Thread Starter esraa92

    (@esraa92)

    I also checked the page source and i searched for the slider but it’s not written on page document.

Viewing 1 replies (of 1 total)
  • The topic ‘wonderslider is not working with ajax’ is closed to new replies.