Your Cart

Reply To: Setting showCounter to False While Galleria is Running Does Not Remove Counter

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Problems Setting showCounter to False While Galleria is Running Does Not Remove Counter Reply To: Setting showCounter to False While Galleria is Running Does Not Remove Counter

gravatar
David B. Bitton
June 12, 2015 at 6:33 pm

OK. I “solved” my problem. Looks like ready was being called
recursively. I now only re-run the galleria when the image count is
visible.

jQuery(function(){
    /** hide slideshow and imagenav  counter */
    jQuery(".galleria-iframe").load(function() {
        var w = this.contentWindow;
        w.Galleria.ready(function(){
            var showCounter = this.getOptions("showCounter");
            if(showCounter) {
                w.Galleria.run('#galleria', {responsive: true, debug: false, showCounter: false, showImagenav: false});
            }
        });
    });
});


Galleria.io uses cookies to store information. You can read more about that in our Privacy Policy. I understand