Thank you for your explanation!
It is out of my knowledge to modify the code. Finally, I just installed the "worked" template after the "problem" template, then the lightbox run properly again even I shifted to the "problem" template.
On the other hand, I found the lightbox may have a little problem when running with mobile device. With clicking the image, there is lightbox displaying, but the image is off center when zoom in, and it cannot be drafted to left or right.

Could you advise me how to fix it?
Thank you!
Bookmarks