• Hi again,

    I have manage to enable the slidehow feature by this way :
    in gallery.php :
    replacing
    data-rel="prettyphoto"
    by
    rel="prettyphoto[pp_gal1]"

    and in um-galley.min.js
    replacing
    jQuery("a[data-rel='prettyphoto']").prettyPhoto();
    by
    jQuery("a[rel^='prettyphoto']").prettyPhoto({slideshow:5000, autoplay_slideshow:true})});

    and replacing too
    data-rel="prettyphoto"
    by
    rel="prettyphoto[pp_gal1]"

    It works, but is it a wrong way ?

    https://ww.wp.xz.cn/plugins/ultimate-member-gallery/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi!

    WOW, works fine,
    thanks akkolad!

    Please @maksbd19 add this feature in next release

    Hello!

    Works better if you use the prettyPhoto code, as this: rel="prettyPhoto[gallery1]"
    instead of
    rel="prettyphoto[pp_gal1]"

    In other hand, my conflict is that I could not replace ‘um-gallery.min.js’ through child theme:
    In frontend, slideshow gallery works fine but upload photos’ module does not work.
    I’ve only gotten that all works fine if I edit ‘um-gallery.min.js’ inside folder plugin…

    From child theme I tried add this code in functions’ child theme unsuccessfully:

    add_action( 'wp_enqueue_scripts', 'my_custom_scripts', 1 );
    function my_custom_scripts()
    {
    wp_dequeue_script( 'um-gallery.min.js' );
    wp_deregister_script( 'um-gallery.min.js' );
    // Now the parent script is completely removed
    // Now enqueue you child js file, no need to register if you are not doing conditional loading
    wp_enqueue_script( 'um-gallery.min.js', get_stylesheet_directory_uri() . '/js/um-gallery.min.js' );
    //Now we have done it correctly
    }

    Any idea to fix it?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘The slideshow feature’ is closed to new replies.