Make WordPress Core

Opened 8 hours ago

Closed 4 hours ago

#64203 closed defect (bug) (invalid)

Gallery Widget

Reported by: adrian33000's profile adrian33000 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.8.3
Component: Widgets Keywords: needs-testing reporter-feedback
Focuses: Cc:

Description

When I use this widget and, for example, set the columns to 3, I get 2 photos displayed on the first line, then 3 on subsequent rows. If the total number of images is divisible by 3, on the last row, the image is full-sized, taking up the full width of the page.

If I change to 4 columns, I get 3 on the first line and then 4 on subsequent rows.

It seems as if the widget always omits one image on the first line and does something odd with the last images instead of maintaining the requested column layout.

Attachments (4)

Screenshot 2025-11-05 at 12-40-20 gallery widget display set to 3 columns.png (6.7 MB) - added by adrian33000 8 hours ago.
Front end display when widget set to 3 columns
Screenshot 2025-11-05 at 15-02-50 Edit Page “How To Donate” Admin page WordPress.png (939.0 KB) - added by adrian33000 5 hours ago.
Screenshot 2025-11-05 at 15-05-38 Live page with gallery.png (2.4 MB) - added by adrian33000 5 hours ago.
screenshot_11_5_2025_3-38-57 PM.png (6.2 MB) - added by adrian33000 5 hours ago.
New view of published page with gallery images

Change History (8)

@adrian33000
8 hours ago

Front end display when widget set to 3 columns

#1 @westonruter
6 hours ago

  • Keywords reporter-feedback added

@adrian33000 Thanks for opening a ticket.

It's a little difficult to understand what your screenshot is showing. I see a grid of photos followed by the admin bar and a header. Can you add a screenshot of the full page showing the Gallery widget in the context of the page? Can you also share a screenshot of the widget in the editing interface, including the images you selected for the gallery?

Also, what theme are you using? Are you able to reproduce this issue with a core theme, like Twenty Twenty-one?

#2 @adrian33000
5 hours ago

Thanks for following up. I have added 2 screenshots, one showing the editing page with the widget settings showing it is set for 3 columns. On the Admin view, that is what you see: 3 columns with 3 rows of 3 photos.

The second screenshot shows the published page, where the top row is reduced to display 2 images, and the last row displays 1 image at full size, taking the full page width. This happens irrespective of the image sizes and is clearly because the widget does not correctly display 3 images in the top row. The same happens with any column number selected. The top row is reduced by one, so 4 displays 3, 5 displays 4, etc.

The theme is Pressville by LSVRthemes, who confirm it is configured for Gutenberg. I have not tested with a default theme.

You can ignore the admin bar that appears. It seems that the screenshot extension drags this down from where it actually is on the admin page. No idea why that is, but I have now added a new one so hope that is clear.

@adrian33000
5 hours ago

New view of published page with gallery images

#3 @westonruter
5 hours ago

@adrian33000 Can you try testing this with a default theme? If you can't reproduce the issue in a core theme, then it may be a bug with Pressville. Since that theme is not on the dotorg directory, it's not something we can troubleshoot, and you'd need to report it to the theme's authors.

#4 @adrian33000
4 hours ago

  • Resolution set to invalid
  • Status changed from new to closed

Yes, just tested with twenty-twenty-five and it seems to be displaying correctly there so I guess it must be a Theme issue.

Thanks.

Note: See TracTickets for help on using tickets.