Gallery PhotoBlocks


This is an image and photo gallery plugin perfect to make galleries with justified edges!
You can zoom the images thanks to a fast lightbox. Add special effects to your grid gallery.
Use our builder to create justified galleries.

Drag and drop functionality

Handy builder

PhotoBlocks Grid Builder is the stellar feature that makes PhotoBlocks special and different from other galleries.
With this tool you can design the layout of your gallery simply by dragging the images. You can make a gallery
with images spanning on more columns or rows.


  • Drag and drop builder to design custom layouts
  • Pixel perfect justified gallery
  • Lightbox to zoom photos
  • Special effects on mouse hover
  • Loading special effects
  • Social sharing
  • Captions with title and description
  • Caption positioning
  • Responsive and mobile ready
  • SEO friendly
  • Open videos on image click
  • Open pages on image click
  • Fast loading gallery
  • Full width galleries
  • Shuffle images
  • Jetpack’s Photon compatibility for high speed
  • Post galleries (premium feature)
  • CDN support for even faster image loading (premium feature)
  • Text blocks (premium feature)
  • Filters/Categories (premium feature)
  • Additional hover effects (premium feature)
  • Additional loading effects (premium feature)
  • Additional captions layouts (premium feature)
  • Handle shortcodes inside blocks (premium feature)


  • wedding album photo gallery
  • designer portfolio photo gallery
  • photography portfolio photo gallery
  • products showcase photo gallery


For automatic installation:

The simplest way to install is to click on ‘Plugins’ then ‘Add’ and type ‘PhotoBlocks’ in the search field.

For manual installation 1:

  1. Login to your website and go to the Plugins section of your admin panel.
  2. Click the Add New button.
  3. Under Install Plugins, click the Upload link.
  4. Select the plugin zip file ( from your computer then click the Install Now button.
  5. You should see a message stating that the plugin was installed successfully.
  6. Click the Activate Plugin link.

For manual installation 2:

  1. You should have access to the server where WordPress is installed. If you don’t, see your system administrator.
  2. Copy the plugin zip file ( up to your server and unzip it somewhere on the file system.
  3. Copy the “photoblocks” folder into the /wp-content/plugins directory of your WordPress installation.
  4. Login to your website and go to the Plugins section of your admin panel.
  5. Look for “PhotoBlocks” and click Activate.


Images fail to loading
  • Are you using Hostgator? Simply contact their support via phone or live chat to report mod security blockage. Send them the faulty link to a thumbnail.
  • If you are not on Hostgator but getting 403 errors then try adding these lines to your .htaccess file in the WordPress installation folder. Revert the modification if it has no effect and contact the hosting’s support.

SecFilterEngine Off
SecFilterScanPOST Off

  • Are you on Bluehost’s Optimized Hosting for WordPress? Make sure you turn off Varnish caching. It empties query strings.
  • Open your .htaccess file and ensure you do not have this line in it:

php_value mbstring.func_overload 2

  • Or something like this:

RewriteRule wp-content/plugins/(.*.php)$ – [R=404,L]

  • Make sure you have GD library. A possible error is “GD Library Error: imagecreatetruecolor does not exist – please contact your webhost and ask them to install the GD library”.
  • iThemes Security (formerly Better WP Security) settings > System Tweaks > Configure Settings > Disable PHP in Plugins – Off. Also, System Tweaks > Filter Suspicious Query Strings – Disable.
  • Sucuri Security plugin > 1-Click Hardening – Do not use it.
  • WP All in ONE Security: WP Security > Firewall > Additional Firewall Rules (tabs at top of page) > Bad Query Strings – Untick.
    AND/OR WP Security > Firewall > 6G Blacklist Firewall Rules (tabs at top of page) > Enable 6G Firewall Protection – Untick.
  • Hide My WP settings > General Settings > Exclude Files – add this: wp-content/plugins/photoblocks-grid-gallery/public/timthumb.php
The layout doesnt’ look correct

Check the console of the browser and look if you see errors, if case please open a support ticket in our forum.

Can I import galleries from other plugins?

Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, Modula, etc cannot be imported.

How can I get support?
How can I say thanks?
  • Just recommend our plugin to your friends! or
  • Like and share our Facebook page
  • Or buy me a present


So far so brilliant

I’ve just started using it. So easy and functional and PRETTY! Solves a lot of petty coding issues in an instant. Massive time and headache saver (I’m not a pro coder!)

Read all 42 reviews

Contributors & Developers

“Gallery PhotoBlocks” is open source software. The following people have contributed to this plugin.


Translate “Gallery PhotoBlocks” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • [Fix] Fixed a bug preventing editing the galleries


  • [Enhancement] Removed CSS conflict with some themes


  • [Fix] Removed reference to unused script


  • [Fix] Fixed typo in code


  • [Fix] Fixed wrong image sizing for portrait formats


  • [Fix] Added support for PHP 5.3.x


  • [Fix] Fixed blurry images on mobile


  • [Enhancement] Enable or disable image resizing


  • [Fix] Fixed compatibility with JetPack’s photon


  • [Enhancement] Renamed thumbnail handler for security reasons


  • [Fix] Fixed bug of 1.1.15 (it’s not a joke)


  • [Fix] Fixed bug of 1.1.14


  • [Fix] Fixed wrong calculation in stacked mode (mobile)


  • [Fix] Fixed user capabilities


  • [Enhancement] Using Packery for blocks placement
  • [Enhancement] [Premium] Fixed bug in filters


  • [Enhancement] Admin panel tweaks


  • [Enhancement] Added cache check
  • [Enhancement] Error message when trying to load an unknown gallery


  • [Enhancement] Use image relative paths when needed


  • [Enhancement] Added debug informations in timthumb


  • [Enhancement] Added new setting in General > Image scale factor to render images more crispy

  • [Fix] Fixed (yet) cropped images in lightbox

  • [Fix] Fixed cropped images in lightbox


  • [Fix] Fixed wrong lightbox image url
  • [Enhancement] Tuned image resizer parameters


  • [Add] Google Fonts (premium version)
  • [Enhancement] Minor improvements
  • [Fix] Fixed clone button


  • [Fix] Fixed skipped columns or rows


  • [Fix] Galleries with a lot of images are now correctly save (it requires deactivation and activation)
  • [Add] Show database errors (if any)

  • [Fix] Added missing file


  • [Add] Debugging informations


  • [Add] Select caption field to use with lightboxes


  • [Add] Alt attribute for SEO
  • [Add] Post galleries (premium)
  • [Add] CDN support (premium)
  • [Add] Troubleshooting page
  • [Enhancement] Greatly improved drag and drop builder
  • [Enhancement] Fixed image loading sequence


  • [Enhancement] Greatly improved performances


  • [Enhancement] Better support for themes with bundled lightboxes


  • [Fix] fixed error on activation


  • [Add] Helper grid as builder background
  • [Add] Handle shortcodes inside blocks (Premium feature)


  • [Add] Copy captions when adding images
  • [Add] New hover effect “Hidden captions”


  • [Fix] Fixed shuffle


  • [Fix] Fixed wrong image offset


  • [Add] New feature: shuffle images


  • [Fix] Fixed hidden galleries on mobile


  • Added survey


  • [Fix] Empty galleries are now correctly managed
  • [Fix] Fixed some CSS conflicts


  • [Fix] Fixed drag issue with Firefox (admin panel)


  • [Fix] Fix for JetPack’s Photon


  • [Enhancement] Added support JetPack’s Photon
  • [Enhancement] Added support for Altervista hosing


  • [Enhancement] Added support for PHP versions prior to 5.5


  • [Fix] Fixed bug preventing galleries loading correctly


  • [Fix] Fixed plugin URL


  • First release!