Hello, I have made a change in order to remove image number where a title has been set for the image (it will however show “Image N / NN” if no title has been set).
The change will be incorporated in the next release but since I don’t know when it will happen, and since it’s possible that in your website the code of lightbox has been twekaed already, I recommend you apply this fix simply by changing the lines 147-149 from:
"titleFormat" : function(title, currentArray, currentIndex, currentOpts) {
return "<span id=\'fancybox-title-over\'><span id=\'fancybox-title-pretext\'>'.__('Image','simplest-gallery').' </span>"+(currentIndex+1)+" / " + currentArray.length + (title.length ? " " + title : "") + "</span>";
}';
to this:
"titleFormat" : function(title, currentArray, currentIndex, currentOpts) {
return "<span id=\'fancybox-title-over\'><span id=\'fancybox-title-pretext\'>" + (title.length ? title : ("'.__('Image','simplest-gallery').'" +(currentIndex+1)+" / "+currentArray.length) ) + "</span></span>";
}';
Apply this fix on the file lightbox.php.
Save and then test.
If it works, and you don’t wont the “Image #” to appear at all in any case, even when there is no title for the image, you can further replace this part
+ (title.length ? title : ("'.__('Image','simplest-gallery').'" +(currentIndex+1)+" / "+currentArray.length) ) +
with this
+ title +
You can see the fix in action at this page: https://vic20reloaded.com/vic-20-cartridge-games-collection-1a/
as you can see “Image N / NN” before the title does not appear.
Hope it helps!