esraa92 on "[Plugin: WonderPlugin Slider Lite] wonderslider is not working with ajax"

تعرفه تبلیغات در سایت
عنوان عکس
عنوان عکس
عنوان عکس
عنوان عکس
عنوان عکس


یافته ها در جستجو

    امکانات وب

    پر مخاطب ها

    آرشیو مطالب

    برچسب ها

    Posted 25 minutes ago #

    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:,
    {'action': 'artist_slider','data': sliderID},
    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"] . ']');
    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?

    Posted 16 minutes ago #

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

    نویسنده : استخدام کار بازدید : 83 تاريخ : دوشنبه 8 شهريور 1395 ساعت: 3:58
    برچسب‌ها :
    اخبار و رسانه هاهنر و ادبیاترایانه و اینترنتعلم و فن آوریتجارت و اقتصاداندیشه و مذهبفوتو بلاگوبلاگ و وبلاگ نویسیفرهنگ و تاریخجامعه و سیاستورزشسرگرمی و طنزشخصیخانواده و زندگیسفر و توریسمفارسی زبان در دیگر کشورها