Viewing 1 replies (of 1 total)
  • I found the same issue. What I did:

    Goto Plugins > WP Lightbox 2 > Edit and in wp-lightbox-2.php replace the regex

    <a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)\?{0,1}\S{0,}['\"][^\>]*

    by

    <a(?![^>]*?rel=['\"](lightbox|nobox).*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)\?{0,1}\S{0,}['\"][^\>]*

    Of course, the rel needs to start with rel=”nobox… then.

    @Deverlopers: Isn’t this a fix which can be sent out with next release?

    • This reply was modified 7 years, 1 month ago by janrothkegel.
    • This reply was modified 7 years, 1 month ago by janrothkegel.
Viewing 1 replies (of 1 total)
  • The topic ‘Disable WP Lightbox 2 for certain images not working!’ is closed to new replies.