Title: gallery problem
Last modified: June 25, 2024

---

# gallery problem

 *  [pingsunday](https://wordpress.org/support/users/pingsunday/)
 * (@pingsunday)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/)
 * hello,
 * When I make a gallery in WordPress of 3 photos:
 * It won’t show the 3 photos in a row, but the third photo are shown in the second
   row.
 * How to fix it?
 * > [View post on imgur.com](https://imgur.com/a/WlBLqPC)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgallery-problem-28%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Alvind](https://wordpress.org/support/users/alvindcaesar/)
 * (@alvindcaesar)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/#post-17848330)
 * Hi there,
 * I just viewed your site, but I don’t see the issue. The photos are sitting in
   one row.
 * [https://postimg.cc/gwVrTHVV](https://postimg.cc/gwVrTHVV)
 *  Thread Starter [pingsunday](https://wordpress.org/support/users/pingsunday/)
 * (@pingsunday)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/#post-17851117)
 * hello, no.
 * The page is cached, here is the page without cache:
 * [https://pingsunday.com/compare-between-butterfly-amicus-prime-amicus-start-and-amicus-expert/?nocache=123](https://pingsunday.com/compare-between-butterfly-amicus-prime-amicus-start-and-amicus-expert/?nocache=123)
 * It only works, when I add something just below.
 * It’s a strange bug.
 * Can you verify please?
 *  [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/#post-17851451)
 * Hi there,
 * see here:
 * [https://app.screencast.com/zn2RWVSezt5fl](https://app.screencast.com/zn2RWVSezt5fl)
 * there is an advert script being inserted after the second gallery item, which
   is breaking the row. To fix the gallery don’t allow an advert to be inserted 
   there.
 *  Thread Starter [pingsunday](https://wordpress.org/support/users/pingsunday/)
 * (@pingsunday)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/#post-17853351)
 * hello David,
 * No, it’s because the 3rd photo is moved, the Adsense script is inserted.
 * Now, I have use Adblock, to remove all Adsense, but the problem is the same (
   the photo is not in a row).
 * I have tested on another pages, without advert, the same problem 🙁
 * Could you help me?
 * I also tried to search on the internet, it could be GeneratePress, theme, or 
   it could be WordPress core bug. I also tried to play with CSS, but neither work.
 * For example: This CSS won’t work:
 * .gallery-columns-3 .gallery-item { width: 33%; } .gallery-columns-4 .gallery-
   item { width: 24.5%; }
 * There is a bug entry for this problem at the core developers: [https://core.trac.wordpress.org/ticket/56970](https://core.trac.wordpress.org/ticket/56970)
 * .is-layout-flex { display: flex; }
 * doesn’t work.
    -  This reply was modified 1 year, 11 months ago by [pingsunday](https://wordpress.org/support/users/pingsunday/).
 *  [Alvind](https://wordpress.org/support/users/alvindcaesar/)
 * (@alvindcaesar)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/#post-17853545)
 * Could you try completely removing the ad script block first and see if it fixes
   the issue? Even if using AdBlock, it only hides the ads but the ad HTML still
   remains in the DOM.
 *  Thread Starter [pingsunday](https://wordpress.org/support/users/pingsunday/)
 * (@pingsunday)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/#post-17856448)
 * Yes, I have removed the ad script.
 * Here is another page, that has the same problem: [https://pingsunday.com/takahashi-miu-equipment/](https://pingsunday.com/takahashi-miu-equipment/)
 * > [View post on imgur.com](https://imgur.com/hoieRgp)
 *  [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/#post-17856879)
 * This shouldn’t be a theme-related issue as the the theme has no control over 
   the gallery block from WP core.
 * Can you disable all plugins and custom functions/CSS to eliminate conflicts from
   elsewhere first?
 * If that doesn’t help, does the issue occur when using a Twenty series WP standard
   theme?

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

The topic ‘gallery problem’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Leo](https://wordpress.org/support/users/leohsiang/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/gallery-problem-28/#post-17856879)
 * Status: not resolved