Caption/title problem with … (three dots)
-
Hi,
Thanks for the latest update. However, I stumbled upon another bug while optimizing my WP-page. As mentioned in the WP-source (line 19), WP replaces … (three dots) with decNCR & #8230; (…). This causes a difference between the title and the caption text, even if they are the same. Therefore, the title is displayed twice in the lightbox overlay. A similar bug is already solved in your source jquery.lightbox.js on line 194:
captionText = $.trim(captionText).replace('& #8217;', '& #039;').replace('’', '\''); //https://nickjohnson.com/b/wordpress-apostrophe-vs-right-single-quote
Fixing this bug only requires adding one more replace()-part:
captionText = $.trim(captionText).replace('& #8217;', '& #039;').replace('’', '\'').replace('…', '...'); //https://nickjohnson.com/b/wordpress-apostrophe-vs-right-single-quote
works well with my browser. I first tried to replace directly the decNCR with three dots, but that did not worked.
Took me a few hours to figure that out. Hope it helps you improve your awesome plugin even more. Greets!(remove the free space between & and #039; for the proper decNCR code)
- The topic ‘Caption/title problem with … (three dots)’ is closed to new replies.