Title: Images not stacking
Last modified: August 21, 2016

---

# Images not stacking

 *  Resolved [gordonblackler](https://wordpress.org/support/users/gordonblackler/)
 * (@gordonblackler)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/)
 * Hi, I’ve installed the latest version of your plugin, unchecked the crop thumbnails
   box in Media Settings and also regenerated the thumbnails, but my images are 
   not stacking as I expected. Here’s a blog post that uses a 3 column WordPress
   gallery.
 * [http://gordonblackler.com/lifestyle/lifestyle-photography-gdansk-roller-girl-at-sunrise/](http://gordonblackler.com/lifestyle/lifestyle-photography-gdansk-roller-girl-at-sunrise/)
 * A couple more points:
    – Checking the box next to “DO NOT allow Masonry to layout
   your gallery columns?” created more space between the thumbs but they still do
   not stack. – I have the Lightbox Gallery plugin installed, but deactivating it
   did not make any difference.
 * Any advice would be appreciated.
 * Thanks

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/images-not-stacking/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/images-not-stacking/page/2/?output_format=md)

 *  Plugin Author [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * (@phoenixmagoo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064009)
 * Hey,
 * I’m looking at the source code on [the page](http://gordonblackler.com/lifestyle/lifestyle-photography-gdansk-roller-girl-at-sunrise/)
   you posted in the previous comment. I’m not seeing the plugin code anywhere.
 * Did you happen to deactivate the plugin?
 *  Thread Starter [gordonblackler](https://wordpress.org/support/users/gordonblackler/)
 * (@gordonblackler)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064038)
 * Hi, WordPress tells me it’s activated, but to make sure, I switched it off then
   on again. No change. However, if I switch to the default WordPress 2013 theme,
   it works, although the spacing is a bit all over the place.
 * Here’s another post with a gallery. This time I made the thumbs a bit bigger 
   so they fit the content area better. Still doesn’t work.
 * [http://gordonblackler.com/events/paprocki-brzozowski-fashion-show-reportage-photography/](http://gordonblackler.com/events/paprocki-brzozowski-fashion-show-reportage-photography/)
 * Any ideas? Seems my theme is interfering. How can I fix it?
 * Thanks again.
 *  Plugin Author [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * (@phoenixmagoo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064039)
 * Typically there is an issue with the theme if the plugin code isn’t being injected
   into a specific theme, but shows up in another theme. Could you make sure that
   wp_head and wp_footer functions are located in your theme? They typically appear
   in the header.php file and the footer.php file at the root level of your theme
   folder.
 * If they are located in theme folder, then please let me know. I will try to get
   my hands on a copy of theme that you are using and I can try to fix whatever 
   is going on.
 * Thanks!
 *  Thread Starter [gordonblackler](https://wordpress.org/support/users/gordonblackler/)
 * (@gordonblackler)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064040)
 * I opened up header.php and footer.php and both contained the functions you mentioned,
   although the footer one was literally this:
 *     ```
       <?php
           wp_footer();
       ?>
       ```
   
 * Hope you can help.
 *  Plugin Author [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * (@phoenixmagoo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064041)
 * Okay. Thanks for checking. I looked up your theme on ThemeForrest and it mentioned
   that it had custom short code for galleries. I’m wondering if you are you using
   the standard [gallery] short tag or if you are using another custom short tag
   that came bundled with the theme.
 * Could you please post the short tag you are using to insert galleries?
 * Thanks!
 *  Thread Starter [gordonblackler](https://wordpress.org/support/users/gordonblackler/)
 * (@gordonblackler)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064042)
 * Yes, there are shortcodes but in this case I wanted to experiment with a masonry
   wall of image thumbs, so I added images via the Add Media button above the text
   editor and inserted a regular WordPress gallery. The code for the last link I
   gave you is:
 * [gallery link="file" ids="1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211"]
 *  Plugin Author [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * (@phoenixmagoo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064043)
 * Gotcha. Cool.
 * I’m guessing that the conflict must exist someplace in the theme unless it’s 
   a plugin conflict.
 * When you activated the 2013 theme, did you happen to deactivate any other plugins?
 *  Thread Starter [gordonblackler](https://wordpress.org/support/users/gordonblackler/)
 * (@gordonblackler)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064044)
 * Since you’re answering so quickly, I’ve temporarily changed the theme to 2013
   so you can see for yourself. I’ve not touched any of the plugins:
 * [http://gordonblackler.com/events/paprocki-brzozowski-fashion-show-reportage-photography/](http://gordonblackler.com/events/paprocki-brzozowski-fashion-show-reportage-photography/)
 *  Plugin Author [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * (@phoenixmagoo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064046)
 * Thanks for changing the theme. I looked at the source code and the plugin is 
   still not being included. I’m guessing that it might be a plugin conflict.
 * When this sort of thing happens to me, I typically deactivate one plugin at a
   time and check to the site to see if anything has changed.
 * If it happens to be a plugin conflict, I can probably download and install the
   plugin in development area and see if I can locate the exact issue.
 * Sorry you have to go through this!
 *  Thread Starter [gordonblackler](https://wordpress.org/support/users/gordonblackler/)
 * (@gordonblackler)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064047)
 * Let’s try from the other direction to make it faster. I’ve deactivated EVERY 
   plugin except yours. I’m not sure what I’m looking for in terms of code injection
   but try this post. There is nothing I can set more default than this:
 * [http://gordonblackler.com/lifestyle/lifestyle-photography-gdansk-roller-girl-at-sunrise/](http://gordonblackler.com/lifestyle/lifestyle-photography-gdansk-roller-girl-at-sunrise/)
 *  Plugin Author [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * (@phoenixmagoo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064048)
 * Cool. The plugin is now injecting the proper code into your site. Now try reactivating
   the previous theme and let’s see what happens.
 *  Plugin Author [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * (@phoenixmagoo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064049)
 * Also, what do you have your thumbnail settings in the Media section set to? I
   believe the vertical photos are a bit too narrow. Try setting the width to 190
   and the height to something like 999. That will allow the vertical photos to 
   be a bit taller and wider.
 *  Thread Starter [gordonblackler](https://wordpress.org/support/users/gordonblackler/)
 * (@gordonblackler)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064050)
 * Ok, I’ve activated my theme. If it’s still working as you expect, please tell
   me what to look for in the source code and I can start activating the plugins.
   I’ll then tell you which one breaks it.
 * As an aside, how can I set my thumb sizes so that portrait and landscape images
   fill the “wall” nicely and I don’t have all those ugly spaces?
 *  Thread Starter [gordonblackler](https://wordpress.org/support/users/gordonblackler/)
 * (@gordonblackler)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064051)
 * Ah, didn’t see your second message. Looks like you answered my question 😉
 *  Plugin Author [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * (@phoenixmagoo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/#post-4064052)
 * Sorry, I posted the last comment out of order.
 * In the Media Settings, change the thumbnail width to 190 and the height to 999.
   This will not make all of your images 999px tall, but it will allow the system
   to create vertical thumbnails that are 190px across and UP TO 999px tall.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/images-not-stacking/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/images-not-stacking/page/2/?output_format=md)

The topic ‘Images not stacking’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-masonry-image-gallery_aa9c85.
   svg)
 * [jQuery Masonry Image Gallery](https://wordpress.org/plugins/jquery-masonry-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-masonry-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-masonry-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-masonry-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-masonry-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-masonry-image-gallery/reviews/)

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [j query](https://wordpress.org/support/topic-tag/j-query/)
 * [masonary](https://wordpress.org/support/topic-tag/masonary/)

 * 21 replies
 * 2 participants
 * Last reply from: [phoenixMagoo](https://wordpress.org/support/users/phoenixmagoo/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/images-not-stacking/page/2/#post-4064058)
 * Status: resolved