Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #415183

    Question: How do I change the action of thumbs in portfolio galleries. This ON MOUSE OVER. I want it ON CLICK.

    Thanks

    #415514

    Hi mleite1!

    I’m sorry but I’m not sure I understand. Are you talking about the portfolio AJAX preview when you hover over the galleries there? Go ahead and send us a link to your page so we can get a better idea of your layout and how your using the portfolios.

    Cheers!
    Elliott

    #415566

    Okay, let’s go.

    The link below has the thumbs action ON MOUSE OVER. I want to switch to ON CLICK. How do I do this?

    http://ocidemnte1.hospedagemdesites.ws/20152/?portfolio=lorem-ipsum

    #416016

    Hi!

    This will require custom modification directly on the core theme files. Edit shortcode.js. Look for this code on line 2287:

    var gallery = $(this), images = gallery.find('img'), big_prev = gallery.find('.avia-gallery-big');
    

    Replace it with:

    var gallery = $(this), images = gallery.find('img'), big_prev = gallery.find('.avia-gallery-big'), imglink = gallery.find('.avia-gallery-thumb a');
    

    Change this line:

    //trigger displaying of thumbnails
    		gallery.on('avia_start_animation', function()
    		{			
    			images.each(function(i)
    			{
    				var image = $(this);
    				setTimeout(function(){ image.addClass('avia_start_animation') }, (i * 110));
    			});
    		});

    With this:

    //trigger displaying of thumbnails
    		gallery.on('avia_start_animation', function()
    		{
    			imglink.each(function(i)
    			{
    				imglink.removeAttr('href');
    			});
    			
    			images.each(function(i)
    			{
    				var image = $(this);
    				setTimeout(function(){ image.addClass('avia_start_animation') }, (i * 110));
    			});
    		});

    Again, look for this line:

    gallery.on('mouseenter','.avia-gallery-thumb a', function()
    

    Replace it with:

    gallery.on('click','.avia-gallery-thumb a', function()
    

    Edit avia.js, look for this code:

    exclude			:	'.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added',
    

    Replace it with:

    exclude			:	'.noLightbox, .noLightbox a, .lightbox-added, .avia-gallery-thumb a',
    

    Last, add this to the Quick CSS field:

    #top .avia-gallery .avia-gallery-thumb a {
    	cursor: pointer;
    }

    Best regards,
    Ismael

    #417303

    Ok, I’ll try. I found a little confusing when you say AGAIN. As if I had to repeat something that had made up.

    #417584

    Hi!

    Hope the custom code works out for you, let us know if you should have any problems.

    Regards,
    Rikard

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