Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Please refer to the bxSlider documentation to know what the script can or cannot do: https://bxslider.com

    Thread Starter tlgtrn

    (@tlgtrn)

    well, documentation is good for simple users but not adequate to understand if it works in “display:none” container (which is not). I just want to know how could I reload my slider on wordpress but figured out I could not, because bxSlider object was not assigned to any pointer like var.
    So I add the below line to the “public function print_gallery_scripts()” in gallery-shortcode.class.php
    echo ' var slider_' . ($this->current_gallery_id - 1) . ' = Array();';

    and in gallery.shortcode.script.php, change the

    $( '#<?php echo $gallery_id; ?> .bxslider' ).bxSlider({

    with

    slider_<?php echo substr($gallery_id, -1); ?>[‘slider’] = $( ‘#<?php echo $gallery_id; ?> .bxslider’ ).bxSlider({

    and

    $('#<?php echo $gallery_id; ?> .bxpager').bxSlider({

    with

    slider_<?php echo substr($gallery_id, -1); ?>['pager'] = $('#<?php echo $gallery_id; ?> .bxpager').bxSlider({

    so, I can reach the slider objects. However I reload the slider_0.[‘slider’], pager dissappears and could not take it back.

    The WordPress plugin just integrates the jQuery plugin in WordPress. I have no relation to the jQuery plugin script.

    That said, their documentation has a section about reloading the slider: https://bxslider.com/examples/reload-slider

    I will update the plugin in order to have the slider affected to a variable in order to make the task easier.

    Thread Starter tlgtrn

    (@tlgtrn)

    thank you

    https://github.com/marvinlabs/bxslider-for-wordpress

    I have not yet released on www.remarpro.com but you can download the updated files on GitHub.

    Sliders and pagers are each stored inside their respective array: sliders and pagers.

    For instance, you can access the pager through variable: pagers[‘gallery_1’] and corresponding slider at sliders[‘gallery_1’] (where gallery_1 is the ID of the gallery/slider).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘multiple sliders with tabs’ is closed to new replies.