Page 1 of 1

Fancybox Multi Product Images - Hide icons if only one

Posted: Wed May 22, 2013 7:37 pm
by norman
If using Fancybox Multi Product Images V4 and you'd like to hide the icons if there is only one, do the following:

Edit file fancyboxwithmultiimagesupport.js (in your Site folder) with Notepad.

At the bottom is a line:

Code: Select all

	$('.lbfixp2').remove();							// remove dummy suffix tags
Immediately after that add a line:

Code: Select all

	$('.lbtable').each(function(){if($('img', this).length == 1) $(this).hide();});	// hide icons if only one