Support » Plugin: Easy Photography Portfolio » an idea to use photoswipe in the other page, post ?

  • Resolved vent

    (@ventair)


    Hello,

    I have this plugin and Minimalist Portfolio theme and i want use lightbox Photoswipe, in blog section (the posts) and others pages!
    For now my solution is to use an other plugin with Photoswipe.
    Everything works fine, but in portfolio Photoswipe js and css are loaded from 2 plugins!
    I can “exclude” the “bad” js & css in portfolio with another plugin!

    But a new feature in Easy Photography Portfolio to use everywhere its lightbox could be a good idea ?

    Maybe it’s already possible ?

    Thanks for this plugin and her integration in a good theme!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author justnorris

    (@justnorris)

    Hey there,
    The plugin is only loading Photoswipe when it’s necessary for the plugin. I’ll double check that to make sure it’s true, but it if it’s not that way – it’s a bug.

    Adding blog support is a great idea, but I don’t want to add bloat to the plugin, so I’m still not sure about that. I think there is no harm in having 2 plugins – one plugin is handling your blog posts, and the other is for the portfolio – I think it’s fine if it works!

    Good evening,

    your plugin isn’t invasive, it’s good point!

    My “problem” is the other plugin, he is active everywhere!

    But the lightbox’s portfolio works good! (even with both .js & .css)

    I will look for a better solution to deactivate the other plugin in the portfolio (now i just use Wp Asset cleanUp)

    I suggest idea, because in my head, it’s cleaner with the same js and css everywhere

    Thanks for the quickly answer!

    Plugin Author justnorris

    (@justnorris)

    The asset clean up might be a good way to go about this. What’s the name of the photoswipe plugin you’re using?

    As for reordering – here is a tutorial: https://www.youtube.com/watch?v=RJGQckJsDf4

    I use this photoswipe plugin for post and page: “Lightbox with PhotoSwipe”

    With Wp Asset CleanUp, it’s easy to add a deactivation rules for all “phort_post”, but for portfolio page Wp Asset CleanUp don’t work. But this last point is just a detail, it is not very important.

    thanks

    Plugin Author justnorris

    (@justnorris)

    I took a look at the PhotoSwipe plugins out there, and it looks like I can improve my asset queue naming. I’ll do that in the next version, and that should get rid of the duplicates too.

    Dang, so I looked at the source, and for some reason they’re enqueuing photoswipe-lib instead of a plain photoswipe. You can open tickets with the other authors and let them know that they can improve the compatibility if they enqueue their scripts and styles as photoswipe.

    • This reply was modified 1 year, 5 months ago by  justnorris.

    Ok,

    in addition, I may have found a bug in their plugin with mobile simulator …
    It’s a second point in your favor! You have better integrated Photoswipe!

    Plugin Author justnorris

    (@justnorris)

    By the way,
    If you like the plugin, please consider adding a review here on WordPress. That would help me out a lot! https://wordpress.org/support/plugin/photography-portfolio/reviews/?filter=5

    Just to precise my precedent post, “Lightbox with PhotoSwipe” don’t bug.
    it was a cache error, creating a conflict with the previous lightbox! Not a bug in plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘an idea to use photoswipe in the other page, post ?’ is closed to new replies.