Fancybox Multi Product Images - Hide icons if only one
Posted: Wed May 22, 2013 7:37 pm
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:
Immediately after that add a line:
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
Code: Select all
$('.lbtable').each(function(){if($('img', this).length == 1) $(this).hide();}); // hide icons if only one