Fancybox Multi Product Images - Hide icons if only one

Miscellaneous Actinic / SellerDeck patches and anything not covered above.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Fancybox Multi Product Images - Hide icons if only one

Post 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
Norman
Post Reply