WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Niko23
    Member
    Posted 1 year ago #

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

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, I'll have a look at it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.