Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #500055

    Hi there,

    in this topic you gave the client the solution for his problem.
    https://kriesi.at/support/topic/lightbox-close-on-image-click/

    I would also be interested in the solution, but unfortunately the answer is marked private. Is there a way to help me too?

    Thanks in advance,

    Regards,

    Bettina

    #500291

    Hey Bettina!

    The solution posted there won’t work because it was for an older version of the theme which used a different lightbox script. Can you detail what’s your current set-up? do you want to apply this mod to all lightboxed images? a link to your site would be helpful too.

    Regards,
    Josue

    #500468

    Hi Josue,

    Yes, I want to apply this modification to all lightboxed images.

    When viewed on mobile devices lightbox images tend to be too small. Is it possible to change the script where the image can be zoomed in and out with thumb/finger?

    Regards,

    Bettina

    #500793

    Hi!

    Open js/avia.js and look for the following block of code:

    imageLoadComplete: function() 
    {	
    	var self = this;
    	setTimeout(function() { self.wrap.addClass('mfp-image-loaded'); }, 16);
    },

    Replace it by this:

    imageLoadComplete: function() 
    {	
    	var self = this;
    	setTimeout(function() { 
    		self.wrap.addClass('mfp-image-loaded'); 
    		$('.mfp-img').on('click', function(){
    			$.magnificPopup.close();
    		});
    	}, 16);
    },

    Regarding the zoom in / zoom out, MagnificPopUp was not built with that functionality in mind, perhaps this could suit your needs:
    http://photoswipe.com/

    Cheers!
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.