website design gold coast
website design gold coast

PhotoSwipe Masonry 2.0

Explore the brand new PhotoSwipe Masonry 2.0 gallery, based off Dmitry Semenov's PhotoSwipe plugin.

PhotoSwipe Masonry 2.0 is an extension of our pre-existing PhotoSwipe Masonry plugin, which builds upon the touch optimised JavaScript popup gallery from Dmitry Semenov found here.

What has changed?

  • Better code structure
  • Lazy loading for large galleries
  • New integrated resize thumbnails function
  • New clean admin panel

This gallery takes advantage of the built-in gallery features of WordPress. Simply use the WordPress admin to create a standard gallery and insert it in the page.
You can adjust the size of the thumbnails and full-size images in the settings. You may need to rebuild your images.

Options are under Settings > PhotoSwipe 2.0

The gallery is built using PhotoSwipe from Dmitry Semenov along with Masonry to generate the thumbnail grid layout.

View working demo here

download the plugin

Help! The gallery doesn’t work?

This is usually caused by a Javascript conflict. The easiest way to track down the problem is to remove or disable other scripts.

You can try:

  • To disable other plugins. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
  • Switch to the Twenty Fifteen theme to rule out any theme-specific problems.
  • Use a browser debugger to find the error. This may help you track down the conflict. Chrome is the best.
  • [advanced] If it’s a theme issue you may have some scripts embedded in your theme. To disable these look inside the header.php, footer.php or from functions.php

Let's work together!

Get in touch Request a quote

Created May 21, 2018 - Last modified on March 3rd, 2021 - Web Design Gold Coast 9 Responses


  1. Perry Johnson

    Love the plugin, but the gallery is rendered above other content, no matter the order in the editor. This wasn’t the case with the previous version.

    • Dean

      Hi Perry, Can you post a link to demo the problem? What version are you using?

  2. Perry Johnson

    My site, uses the plugin, v2. The paragraph of text and image below the gallery are first in the editor.

  3. vietnam hair

    Great content, looking forward to implement all these tips!

  4. Zbyszek

    Hi, plugin doesn’t see jQuery because I’m loading it in footer and the plugin loads scripts before. What can I do?

  5. Thiago

    The share button does not appear. Only appears when I press F5 after clicking the thumbnail.

  6. Norbert Kriener

    Hi, is there a way to get a smaller distance below the gallery, it seems to be not possible with CSS, or am I wrong?

  7. Peter

    Love this plugin – it looks great. However, when I go to add a page or a post I’m receiving this error: ‘call_user_func_array() expects parameter 1 to be a valid callback’. I’ve gone through suggested debugging but not found whats causing the problem.

    If anyone has a fix for this I’d be grateful if you could let me know.

  8. GeraldP

    What if I am not using WordPress? How do I use this?

Leave a Reply