WordPress.org

Forums

Lightbox Plus Colorbox
V2.6 Doesn't work with WP 3.8 (3 posts)

  1. heinelg
    Member
    Posted 1 year ago #

    Updated to WP to 3.8 - Gallery doesn't work anymore with Lightbox Plus ColorBox enabled - page with gallery is blank.

    http://wordpress.org/plugins/lightbox-plus/

  2. rashmani
    Member
    Posted 1 year ago #

    Hi there,

    I think I've encountered the same problem. The (a tags surrounding) images get correctly added the necessary rel value but no lightbox pops open. From the js Console I see a jQuery error like "unrecognized expression: a[rel= lightbox[post-1234]]".

    Googling a bit took me here: http://stackoverflow.com/questions/15655154/unrecognized-expression-in-attributecontains-selector

    I've solved by modifying plugin code (file lightbox-plus/class/filters.class.php) to generate rel values as

    rel="lightbox\\[post-12345\\]"

    This happens in a bunch of lines like this (173):

    if (!$e->parent()->rel) { $e->parent()->rel = 'lightbox\\['.$postGroupID.$unq_id.'\\]'; }

    This worked for me, I hope it may help someone else.

    Cheers,
    rash*

  3. heinelg
    Member
    Posted 1 year ago #

    Thanks, Rash - unfortunately (or fortunately) that didn't help me. Upon further investigation I discovered that my problem was caused by deleting a user. Restored the backup and upgraded to WP 3.8 - all is fine.

    My apologies to Dan Zappone for erroneously blaming the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.