Hi @prudhvikanakala !
It doesn’t look like the Simple Lightbox plugin is AMP-compatible, which is probably why it’s not working on your AMP page.
Since you’re using Reader mode
, the AMP plugin removes invalid markup in the background. When I use Simple Lightbox with Transitional mode
, I can see it uses custom JavaScript which is not allowed on AMP pages and is automatically removed (under AMP > Validated URLs).
With that said, you have some options:
1) You can reach out to the authors of Simple Lightbox and request compatibility with AMP.
2) You can use the AMP plugin’s lightbox feature for your AMP pages if you’re using the default block editor. Open the image block settings, go down to AMP Settings, and toggle on Add lightbox effect for your images: https://jmp.sh/bnyE743
3) If you’re using the classic editor and have your images linked to the media file (which looks to be required for Simple Lightbox), there is this mini plugin that will apply the lightbox to your images (installation instructions included):
https://gist.github.com/westonruter/fefdcda37df7bde61c7b0f690fafc01c