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?
- $10 logo contest
- Logo - Cartoon Dog $40
- Is Dropshipping Finally Dead — or Just Changing Shape?
- I need opinions about the content on my site
- Any Experience with LinkSafari (Positive/Negative)?
- Ways to perform effective keyword research to target the right audience?
- Best Practices for Using Keywords in Blog Posts – Expert Opinions Needed
- Blogger vs wordpress
- What Do You Think About My Blog? – Ea Money Online Mastery
- ChatGPT Is a Search Engine and Should Be Recognized as One
