Replies: 0
Hello!
For some reason “Lightbox with PhotoSwipe” plugin stops working (stops opening images in lightbox) when “All in One SEO” is enabled. I tested this on the main site and on local dev site.
“Lightbox with PhotoSwipe” plugin page: https://wordpress.org/plugins/lightbox-photoswipe/
In order for the “Lightbox with PhotoSwipe” plugin to work, it just needs to have images on the page linked directly to the media and not the attachment page. Without “All in One SEO” enabled “Lightbox with PhotoSwipe” works just fine.
“Lightbox with PhotoSwipe” adds data-attributes to links like that:
<a href="http://somesite/wp-content/uploads/2021/02/someimage.jpg" data-lbwps-width="491" data-lbwps-height="491" data-lbwps-handler="1"><img...
But as soon as All in One SEO is enabled, it removes all data attributes from links and the lightbox stops working…
Why is this happening?
P.S.: It seems there was a similar issue in combination of “Lightbox with PhotoSwipe” with another SEO plugin https://wordpress.org/support/topic/problem-with-yoast-seo-6/ Is this the same issue?
Thank you