Support » Plugins and Hacks » Plugin: Galleria Use Lightbox instead of Full Screen

  • I’d like to be able to click on image in gallery and get lightbox using Dark – No Fullscreen. Fullscreen creates images that are way too large. I’ve been searching the forums and have tried stuff out, but nothing has worked so far. I’m not even sure which plugin file I should be updating.

    I tried adding these lines of code to galleria/galleria/galleria-1.2.9.js, but it had no effect. Thanks for any help!!

    Galleria.loadTheme('galleria/themes/classic/galleria.classic.js');
    Galleria.run('#galleria');
     $('<a>').click(function(e) {
    Galleria.configure({trueLightbox:false});
    Galleria.ready(function(){this.openLightbox();});
      }).html('</a><a>» Switch to fullscreen «</a>
    
    ').appendTo('body');
    Galleria.ready(function() {
        var gallery = this;
        this.addElement('exit').appendChild('container','exit');
        var btn = this.$('exit').hide().text('close').click(function(e) {
            gallery.closeLightbox();
        });
        this.bind('lightbox_open', function() {
            btn.show();
        });
        this.bind('lightbox_close', function() {
            btn.hide();
        });
    });

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

  • The topic ‘Plugin: Galleria Use Lightbox instead of Full Screen’ is closed to new replies.