Support » Plugin: Lightbox Plus Colorbox » Fix for post title appearing in lightbox rather than image title

  • Along with others, I discovered Lightbox Plus stopped displaying the image title – rather, it just displayed the post title for all images.

    This may be to do with a change in the way WordPress have formatted their gallery images, but fix is as follows.

    NOTE – THIS WILL BE OVERRIDDEN ON PLUGIN UPGRADE (Dan, if this fix is correct, could you fix in the next version please?):

    Open the following file: wp-content/plugins/lightbox-plus/classes/filters.class.php.

    In the section /** Do Not Display Title is select – yes/no **/, lines 191-193 should be as follows:

    if ($e->alt) {
       $e->parent()->title = $e->alt;
    }

    i.e. change $e->title to $e->alt

    Hope that helps someone!

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

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fix for post title appearing in lightbox rather than image title’ is closed to new replies.