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?
- $40 Logo Contest (24 Hours) | Quick Pay
- Scale up your business with ad network Mondiad [Official Thread]
- How to find good expired domains?
- I’m selling PayPal Accounts , Bank and Paypal Transfers all over the world.
- Abigail
- The reason I "thesaunderschild" quit covering Resident Evil...
- Looking for Indian Workers for Daily work
- German SEO forums?
- Selling a Magento 2 Hyva themes website build
- FB "groups" how to generate a pop up msg *every* time a new topic is posted