Open ajssd opened 2 years ago
There is no step-by-step migration guide, as API significantly changed.
pswp
structure HTML or bind click event manually. So the easiest way is to completely re-write the old initialization. Update: my WordPress plugin now includes PhotoSwipe 5 offically and the specific branch for that does no longer exist. So just have a look here:
PhotoSwipe 4: https://github.com/arnowelzel/lightbox-photoswipe/blob/main/src/js/frontend.js
PhotoSwipe 5: https://github.com/arnowelzel/lightbox-photoswipe/blob/main/assets/ps5/frontend.js
The link https://github.com/arnowelzel/lightbox-photoswipe/tree/photoswipe5 gives error 404
@acwolff that's the reason why I added another comment.
Is there a step-by-step migration guide for upgrading from V4 to V5? We have a lot of code developed using V4, following the steps described at https://photoswipe.com/v4-docs/getting-started.html. It'd be great to have a well-documented guide to converting to V5.