Support » Plugin: Promotion Slider » [Plugin: Promotion Slider] Slider won't pause

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Micah Wood

    (@woodent)

    Sorry, but the slider on that site isn’t actually the Promotion Slider. I am not familiar with it enough to know what the problem might be.

    Hi,

    thanks for response! But it is promotion slider. When I disable the plugin slides are gone and code is displayed instead 🙂

    echo do_shortcode(‘[promoslider category=”hp-promo-slider” width=”580px” height=”360px” display_nav=”fancy” display_title=”default” display_excerpt=”excerpt” time_delay=”10″ pause_on_hover=”pause”]’);

    😀

    Plugin Author Micah Wood

    (@woodent)

    Ah… sorry, I didn’t look close enough. It looks like your web developer must have used the promotion slider and added some custom functionality. I say this because the promotion slider doesn’t actually have a pause button, which is what threw me off initially.

    There was code added to promo_slider.js in the plugin. Typically this is a bad practice since upgrading the plugin later would overwrite all of the changes.

    Anyways, in the code, your developer simply forgot to take into account the case where a user pauses the slider and then clicks on another slide. It also looks like the pause functionality is only applied if the ‘Pause slider on mouseover’ option or shortcode attribute is set.

    Basically, line 95 of the promo_slider.js file is where the issue occurs. It currently reads:
    if(autoAdvance) sliderInterval = setInterval(function(){progress('forward', currentSlider, panelCount);}, (timeDelay * 1000));

    It should be changed to something like this:
    if(autoAdvance && playpause == 0) sliderInterval = setInterval(function(){progress('forward', currentSlider, panelCount);}, (timeDelay * 1000));

    Oh my god 🙂

    Thanks a lot!!! I didn’t notice that plugin was changed, it is a little overtaken projekt 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Promotion Slider] Slider won't pause’ is closed to new replies.