WP jQuery Lightbox
Caption/title problem with ... (three dots) (2 posts)

  1. Niko23
    Posted 3 years ago #


    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('’', '\''); //http://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('…', '...'); //http://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)


  2. ulfben
    Plugin Author

    Posted 3 years ago #

    Thanks, I'll have a look at it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.