Title: Photoswipe Masonry
Author: THRIVE - Web Design Gold Coast
Published: <strong>28 dezembro, 2014</strong>
Last modified: 14 outubro, 2026

---

Pesquisar plugins

![](https://ps.w.org/photoswipe-masonry/assets/banner-772x250.jpg?rev=3743078)

![](https://ps.w.org/photoswipe-masonry/assets/icon-256x256.png?rev=3743137)

# Photoswipe Masonry

 Por [THRIVE – Web Design Gold Coast](https://profiles.wordpress.org/deanoakley/)

[Baixar](https://downloads.wordpress.org/plugin/photoswipe-masonry.1.3.0.zip)

 * [Detalhes](https://br.wordpress.org/plugins/photoswipe-masonry/#description)
 * [Avaliações](https://br.wordpress.org/plugins/photoswipe-masonry/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/photoswipe-masonry/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/photoswipe-masonry/#developers)

 [Suporte](https://wordpress.org/support/plugin/photoswipe-masonry/)

## Descrição

PhotoSwipe Masonry is an image gallery plugin for WordPress built using PhotoSwipe
from Dmitry Semenov. [photoswipe](http://photoswipe.com/)
 PhotoSwipe Masonry takes
advantage of the built in gallery features of WordPress. Simply use the WordPress
admin to create a gallery and insert it in the page. You may need to adjust the 
size of the thumbnails to suit your theme in the settings.

Options are under Settings > PhotoSwipe

The PhotoSwipe Masonry gallery plugin allows you to:

 * Upload multiple images at once
 * Easily order images via drag and drop
 * Add a title and caption

Via the options panel you can modify:

 * Tamanho da miniatura
 * Full image size

Some other features include:

 * Keyboard control
 * Supports multiple galleries
 * Block editor support with a “PhotoSwipe Masonry Gallery” block, plus a Masonry
   option for the standard Gallery block
 * Simple columns and spacing controls

#### How to add a masonry gallery (block editor)

 1. Edit a post or page and click the + (Add block) button.
 2. Search for “masonry” or “photoswipe” and choose **PhotoSwipe Masonry Gallery**.
    You can also type `/masonry` in an empty paragraph.
 3. Click **Upload** or **Media Library** and choose your images. Drag images in the
    gallery to reorder them.
 4. With the gallery selected, open the block settings sidebar (the gear icon, top 
    right) and find the **PhotoSwipe Masonry** panel.
 5. Set **Columns** (1-8) and **Spacing** (0-60px).
 6. Save or update the page. Visitors can click any image to open it in the PhotoSwipe
    lightbox.

#### Turn an existing Gallery block into a masonry gallery

 1. Select the Gallery block. If a single image is selected, click the “Select parent”
    arrow in the toolbar to select the whole gallery.
 2. In the block settings sidebar, open the **PhotoSwipe Masonry** panel.
 3. Turn on **Masonry layout**, then set Columns and Spacing.

You can also select a Gallery block, click its icon in the toolbar and transform
it into a **PhotoSwipe Masonry Gallery**. To go back to a standard gallery, turn**
Masonry layout** off.

#### Shortcode galleries (classic editor)

Create a gallery with the Add Media button, or add a shortcode such as `[gallery
ids="1,2,3" columns="3"]`. Existing shortcode galleries keep working as before and
use the thumbnail settings under Settings > PhotoSwipe.

#### Good to know

 * Masonry galleries show two columns on screens narrower than 650px.
 * Masonry galleries always open images in the PhotoSwipe lightbox, so the Gallery“
   Link to” setting is ignored.
 * Images must come from the Media Library. A gallery that contains an image inserted
   from a URL shows as a standard Gallery.
 * Image captions are shown under thumbnails when “Show captions on thumbnails?”
   is enabled under Settings > PhotoSwipe. Captions always appear in the lightbox.

See a [demo here](http://thriveweb.com.au/the-lab/PhotoSwipe/)

## Capturas de tela

[⌊Masonry gallery with three columns, varied image heights and white gutters⌉⌊Masonry
gallery with three columns, varied image heights and white gutters⌉[

Masonry gallery with three columns, varied image heights and white gutters

[⌊Screenshot Popup layout⌉⌊Screenshot Popup layout⌉[

Screenshot Popup layout

## Instalação

 1. Upload `/photoSwipe-masonry/` to the `/wp-content/plugins/` directory
 2. Ative o plugin por meio do menu “Plugins” no WordPress
 3. In the block editor, add a **PhotoSwipe Masonry Gallery** block and choose your
    images (see “How to add a masonry gallery” above)
 4. Or, in the classic editor, use WordPress to create a gallery and insert it in the
    page

## Perguntas frequentes

### I can’t find the PhotoSwipe Masonry panel

Make sure the whole gallery is selected, not a single image inside it. The block
settings sidebar only shows the panel for the Gallery block. If you’ve just updated
the plugin, refresh the editor.

### Can I change columns and spacing for each gallery?

Yes. Each masonry gallery has its own Columns and Spacing settings in the PhotoSwipe
Masonry panel.

### Will my existing galleries change?

No. Shortcode galleries and existing Gallery blocks look the same until you turn
on Masonry layout for them.

## Avaliações

![](https://secure.gravatar.com/avatar/b94af65ef4e74785f9322ce28d431edef85aabdd4ed57b0defffba57215dfc93?
s=60&d=retro&r=g)

### 󠀁[Works as described](https://wordpress.org/support/topic/works-as-described-342/)󠁿

 [Josh Journey](https://profiles.wordpress.org/ljosh/) 16 maio, 2024

Photo Swipe with a little flare of Masonry. Worked right out of the box and even
supports touch screen monitors with URL hash support. Navigating and zooming in 
the photo works beautifully. Better than most lightbox plugins.

![](https://secure.gravatar.com/avatar/fad8f1770a23c1b8b5c937610c53ada29e54a9d3537161134c996cbe38a6aa88?
s=60&d=retro&r=g)

### 󠀁[требует что-то ещё](https://wordpress.org/support/topic/%d1%82%d1%80%d0%b5%d0%b1%d1%83%d0%b5%d1%82-%d1%87%d1%82%d0%be-%d1%82%d0%be-%d0%b5%d1%89%d1%91/)󠁿

 [User966](https://profiles.wordpress.org/nik966/) 25 dezembro, 2020

Would you have any idea as to why the popup doesn’t load on click? Whenever I click
an image it just goes straight to the image itself on a blank page.

![](https://secure.gravatar.com/avatar/b00b810fd62cc1ac298145af1bbd93744a951e9d71e4761699069ed2fdda606a?
s=60&d=retro&r=g)

### 󠀁[Simplistic Masonry](https://wordpress.org/support/topic/premium-masonry/)󠁿

 [dualaudi](https://profiles.wordpress.org/dualaudi/) 29 setembro, 2020 1 resposta

Updated as I'm pretty sure I was writing on the wrong plugin author. This is a great
plugin.

![](https://secure.gravatar.com/avatar/3cdc10d1edfb232ed6f0641878e08915d8ef33bfe9ee41b14bf5eadc830109b5?
s=60&d=retro&r=g)

### 󠀁[Love it but not compatible with Lazy Load](https://wordpress.org/support/topic/love-it-but-not-compatible-with-lazy-load/)󠁿

 [LuisRomero](https://profiles.wordpress.org/luisromero/) 27 setembro, 2020

I love it but I installed some lazy load plugins but gallery does not work (i.e.
Lite Speed Cache) Please, improve it. Thanks.

![](https://secure.gravatar.com/avatar/04e6f6607df13c114ff259d7a9f68c73715dc68a8c44eaae6ba222fdea32156b?
s=60&d=retro&r=g)

### 󠀁[Very easy plug in](https://wordpress.org/support/topic/very-easy-plug-in-2/)󠁿

 [vita3111111111](https://profiles.wordpress.org/vita3111111111/) 2 abril, 2020

overall, not bad

![](https://secure.gravatar.com/avatar/ffaabfd4a7792f18fcbc5be656e44edc5e0d76cda5ab45b44bf47e9197c4b69d?
s=60&d=retro&r=g)

### 󠀁[The Best, but currently bugged](https://wordpress.org/support/topic/the-best-but-currently-bugged/)󠁿

 [mattewre](https://profiles.wordpress.org/mattewre/) 31 março, 2020

Based on thriveweb/photoswipe-masonry is probably the best free masonry plugin for
Wordpress. Unfortunately I'm experiencing a severe bug: images are loaded both as
thumbnail and full-size when page loads. This bug have been reported by other users
on Wordpress 5, I hope it will be fixed.

 [ Leia todas as 46 avaliações ](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/)

## Colaboradores e desenvolvedores

“Photoswipe Masonry” é um programa de código aberto. As seguintes pessoas contribuíram
para este plugin.

Colaboradores

 *   [ THRIVE – Web Design Gold Coast ](https://profiles.wordpress.org/deanoakley/)

[Traduzir o “Photoswipe Masonry” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/photoswipe-masonry)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/photoswipe-masonry/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/photoswipe-masonry/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/photoswipe-masonry/)
por [RSS](https://plugins.trac.wordpress.org/log/photoswipe-masonry/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 1.3.0

 * Add a Masonry layout option to the standard Gallery block, with columns and spacing
   controls and an editor preview.
 * Add a “PhotoSwipe Masonry Gallery” block to the block inserter.
 * Masonry Gallery blocks open in the PhotoSwipe lightbox and use two columns on
   small screens.
 * Fix the lightbox failing when an image caption contains a link.
 * Existing [gallery] shortcode galleries are unchanged.

#### 1.2.36

 * Fix masonry layout on small screens: galleries now display in two columns below
   650px and re-layout on resize.
 * Load gallery scripts in the footer with proper dependencies, and cache-bust the
   inline CSS/JS on change.
 * Add Requires PHP and License metadata.

#### 1.2.35

 * Update compatibility metadata after testing with WordPress 7.1.3 and PHP 8.4.
 * Fix a PHP deprecation warning when initialising settings on first activation.
 * Initialise masonry after the gallery markup is ready, including on block themes.

#### 1.2.34

 * Refresh the WordPress.org banners and plugin icons with abstract masonry artwork.
 * Update the gallery screenshot and caption to show the current three-column masonry
   layout.

#### 1.2.33

 * Update the plugin release version to 1.2.33. No gallery behaviour changes.

#### 1.2.32

 * Readme update

#### 1.2.19

 * Readme update
 * Added responsive styling for figure

#### 1.2.18

 * Security update

#### 1.2.17

 * Bug fix – Push error

#### 1.2.16

 * Security update
 * Bug fix

#### 1.2.15

 * Security update

#### 1.2.14

 * Merge pull request from larsschellhas
 * Fixed lazy load issues and updated masonry and photoswipe libraries

#### 1.2.13

 * Readme.txt update
 * Security update
 * Checking latest compatibility

#### 1.2.12

 * Readme.txt update
 * Checking latest compatibility

#### 1.2.11

 * Small PHP error fix

#### 1.2.10

 * Readme.txt update
 * Checking latest compatibility

#### 1.2.9

 * Meta update
 * z-index update

#### 1.2.8

 * Meta update and testing for WP v5

#### 1.2.7

 * Warning error fix

#### 1.2.6

 * Readme and testing
 * See v2 dev https://github.com/thriveweb/photoswipe-masonry-v2

#### 1.2.4

 * fix for WP 4.6.1

#### 1.2.3

 * Now runs from function to simplify AJAX support

#### 1.2.2

 * Fix loading images via url in gallery mode
 * Removed sharing for single images. Will try to add in future versions.
 * Code tidy

#### 1.2.1

 * Fix for captions in full screen
 * Tidied code

#### 1.2.0

 * Major update with support for single images in posts

#### 1.1.2

 * Removed .entry-content img { max-width: none; }

#### 1.1.1

 * masonry enqueued call causing issues. I rolled back to old style

#### 1.1.0

 * fixed alt text
 * added white theme
 * added caption option
 * added masonry option
 * fixed masonry enqueue
 * added clear css
 * ie9 fix

#### 1.0.6

 * gallery load from URL (#&pid=1&gid=2) fix

#### 1.0.5

 * Yoast fix

#### 1.0.4

 * css fix

#### 1.0.3

 * photoswipe dist update

#### 1.0.2

 * photoswipe dist update

#### 1.0.1

 * This is the first version

## Meta

 *  Versão **1.3.0**
 *  Última atualização **4 semanas atrás**
 *  Instalações ativas **6.000+**
 *  Versão do WordPress ** 6.0 ou superior **
 *  Testado até **7.1.4**
 *  Versão do PHP ** 7.4 ou superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/photoswipe-masonry/)
 * Tags
 * [gallery](https://br.wordpress.org/plugins/tags/gallery/)[image gallery](https://br.wordpress.org/plugins/tags/image-gallery/)
   [lightbox](https://br.wordpress.org/plugins/tags/lightbox/)[masonry](https://br.wordpress.org/plugins/tags/masonry/)
   [photoswipe](https://br.wordpress.org/plugins/tags/photoswipe/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/photoswipe-masonry/advanced/)

## Classificações

 4.5 de 5 estrelas.

 *  [  36 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/?filter=5)
 *  [  5 avaliações com 4 estrelas     ](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/?filter=4)
 *  [  1 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/?filter=3)
 *  [  2 avaliações com 2 estrelas     ](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/?filter=2)
 *  [  2 avaliações com 1 estrelas     ](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/?filter=1)

[Sua avaliação](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/)

## Colaboradores

 *   [ THRIVE – Web Design Gold Coast ](https://profiles.wordpress.org/deanoakley/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/photoswipe-masonry/)