• Resolved ilvez

    (@ilvez)


    The caption box was behaving erratically with the different browsers, even if it was turned off from the plugin options.

    If you want to permanently disable the caption box and remove the small “i” appearing on top of the images you should edit:

    galleria.theme.min.js file in the folder:

    image-gallery-reloaded/themes/classic

    Replace all the code within the file with following: NB! BACKUP YOUR OLD FILE IN THE CASE IT WILL NOT WORK!

    /**
     * Galleria Classic Theme 2012-08-09
     * https://galleria.io
     *
     * Licensed under the MIT license
     * https://raw.github.com/aino/galleria/master/LICENSE
     *
     */
    (function(a){Galleria.addTheme({name:"classic",author:"Galleria",css:"galleria.theme.css",defaults:{transition:"slide",thumbCrop:"height"},init:function(b){Galleria.requires(1.28,"This version of Classic theme requires Galleria 1.2.8 or later"),this.addElement,this.append,d=Galleria.TOUCH,e=d?"touchstart":"click";this.$("loader,counter").show().css("opacity",.4),d||(this.addIdleState(this.get("image-nav-left"),{left:-50}),this.addIdleState(this.get("image-nav-right"),{right:-50}),this.addIdleState(this.get("counter"),{opacity:0})),this.bind("thumbnail",function(b){d?a(b.thumbTarget).css("opacity",this.getIndex()?1:.6):(a(b.thumbTarget).css("opacity",.6).parent().hover(function(){a(this).not(".active").children().stop().fadeTo(100,1)},function(){a(this).not(".active").children().stop().fadeTo(400,.6)}),b.index===this.getIndex()&&a(b.thumbTarget).css("opacity",1))}),this.bind("loadstart",function(b){b.cached||this.$("loader").show().fadeTo(200,.4),a(b.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",.6)}),this.bind("loadfinish",function(a){this.$("loader").fadeOut(200)})}})})(jQuery);



    [You need to use the code buttons when posting code here]

  • The topic ‘Permanently disable caption box’ is closed to new replies.