Just re-checked your gallery and noticed the links <a>
in the source are spread out across multi-lines. What i mean is for every gallery image’s <a>
it actually takes up 8 lines just for its open tag. I’ll bet good money this plugin’s regex modifier expects single lined anchors. I will check for ya…
Update
Yup…i think i’m right. I think that is your problem. I could be wrong but the plugin author didn’t realize that the <a>
tag may spread across multiple lines and so in your case on your gallery page it wont trigger. Curious, lets try a test. Locate, and open this file:
responsive-lightbox\includes\class-frontend.php
We are going to make a few simple changes. So before you do make a backup of this file. Once u are done these changes you want to put it on your website server.
So, we are going to make two changes, the first on line 82 and the 2nd on line 179. The new change is identical for line 82 and line 179.
Old Line:
preg_match_all( ‘/<a(.*?)href=(?:\’|”)([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\’|”)(.*?)>/i’, $content, $links );
New Line:
preg_match_all( ‘/<a(.*?)href=(?:\’|”)([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\’|”)(.*?)>/is’, $content, $links );
All i did was add the letter “s” (its a regex modifier which allows for the dot metacharacter to match new lines).
Let me know if this resolves your problem. If not then u can put it back to the original file and we can keep trying to figure it out.
Cheers
Kimberly
PS – i dont have the plugin installed so i am only going by code observations.