• cckhistoric

    (@cckhistoric)


    Hello,

    The lightbox is not working with images in posts made since December 4th. Any posts made before then the images load properly with the lightbox. I have tried changing themes and it made no difference. I have checked that the image links are also in place. I cant figure out why they are not loading.

    Here is a link. If you click on the images in the post from December 4th they load up just fine. If you click on the images in the post from December 14th then they do not.

    https://www.cckhistoric.com/page/3/

    Any advice would be appreciated.

    Daniel

    https://www.ads-software.com/plugins/lightbox-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • RogerT42

    (@rogert42)

    This has been a problem since WP 4.4.
    WP 4.4+ adds “attachment wp-att-xxx” to the “Link Rel” attribute of an image added to a page/post. This causes Lightbox Plus to ignore the image, which then just opens as a larger image (default WP action).
    If you clear the Link Rel content, all works as before.
    To ask customers to do this for each image inserted is not on. Other lightbox plugins don’t have this problem. I now use Simple Lightbox – https://www.ads-software.com/plugins/simple-lightbox/, which works great.
    This problem has been mentioned a number of times in these comments (see https://www.ads-software.com/support/topic/dont-work-on-wp-44?replies=15), and although there was apparently an update to the plugin a month ago, and it’s stated that it’s compatible to WP 4.4.2, I can’t get it to work.
    Shame, as it was a good plugin.
    There is a “fix” by modifying the code in one of the WP files, but this could be over written with a WP update. See https://www.web266.de/tutorials/wordpress/wordpress-update/update-4-4/ (need to use google translate) or https://core.trac.www.ads-software.com/ticket/34826
    Basically, using ftp, open “/wp-admin/includes/media.php” and remark out line 125:
    $rel = ' rel="attachment wp-att-' . esc_attr( $id ) . '"';
    and replace with:
    $rel = 'attachment wp-att-' . $id;
    This fixes the problem, but may be over written in a future WP update.
    If someone can tell me another way to install this plugin that gets it to work correctly, I’d love to hear it. Otherwise it’s not being used on any of my sites any more.

    Thread Starter cckhistoric

    (@cckhistoric)

    Thanks so much for the help. This is great information. I will persevere for the time being. Glad to know I wasn’t going mad. Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lightbox not working on posts since December 4th. Works fine on older posts.’ is closed to new replies.