Title: Gallery function has stopped working
Last modified: April 9, 2026

---

# Gallery function has stopped working

 *  Resolved [cpurrin1](https://wordpress.org/support/users/cpurrin1/)
 * (@cpurrin1)
 * [2 months ago](https://wordpress.org/support/topic/gallery-function-has-stopped-working/)
 * I’m trying to display photographs in a grid but only get a single column of images.
   No change when I alter image resolution or any other setting for the gallery.
   Other posts that once had galleries now have the same problem. [Here](https://colinpurrington.com/wp-content/uploads/2026/04/Screenshot-2026-04-09-at-8.22.57-AM.png)
   is the view in editor. [Here](https://colinpurrington.com/wp-content/uploads/2026/04/Screenshot-2026-04-09-at-8.24.09-AM.png)
   is the output, which is the same for Safari, Chrome, and Firefox. WordPress 6.9.4
   running Twenty Twelve.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgallery-function-has-stopped-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [2 months ago](https://wordpress.org/support/topic/gallery-function-has-stopped-working/#post-18876327)
 * It’s your theme causing the problem.
 * Add the following custom CSS line in **APPEARANCE -> CUSTOMIZE -> ADDITIONAL 
   CSS** to fix the problem (place this after the existing custom CSS code, and 
   don’t forget to hit PUBLISH).
 *     ```
       .entry-content figure {
           display: inline-block;
       }
       ```
   
 * Good luck!
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 months ago](https://wordpress.org/support/topic/gallery-function-has-stopped-working/#post-18876550)
 * You’re missing essential parts of the stylesheet generated by WordPress itself,
   which would ensure proper display. However, I don’t think this has anything to
   do with your theme. You’re using TwentyTwelve, which doesn’t usually cause this
   kind of issue. When I tested it, the gallery worked fine for me.
 * I would therefore recommend that you check which plugin is affecting the output.
   Do you have an optimization plugin? Try deactivating it. If you’re unsure which
   one it might be, try deactivating them all.
 *  Thread Starter [cpurrin1](https://wordpress.org/support/users/cpurrin1/)
 * (@cpurrin1)
 * [2 months ago](https://wordpress.org/support/topic/gallery-function-has-stopped-working/#post-18876570)
 * [@threadi](https://wordpress.org/support/users/threadi/) Ahhhh. Amazing. Turns
   out it was Yoast, which I’m not sure why I had anyway. Thank you so much.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgallery-function-has-stopped-working%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [cpurrin1](https://wordpress.org/support/users/cpurrin1/)
 * Last activity: [2 months ago](https://wordpress.org/support/topic/gallery-function-has-stopped-working/#post-18876570)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
