Support » Fixing WordPress » WordPress Gallery – size of the last image

  • Resolved victorgodg


    I’m using a WordPress Gallery on the home page. At now it contains 3 images, and I set number of columns equal to 3 as well. The page looks fine at desktop, but a mobile screen fits only 2 images, so the 3rd image is displayed below and it is 2 times bigger than others. Is there any way to make it of the same size as other thumbnails?

    I found that a similar problem was discussed here, but with regard to a specific plugin.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I believe the following custom CSS will work:

    .wp-block-gallery.has-nested-images figure.wp-block-image:last-of-type {
    	flex-grow: 0;

    To use it, go to the customizer screen via Appearance > Customize in the WordPress admin. Once in the customizer, open the “Additional CSS” panel and paste the above in. Then, save.

    Thread Starter victorgodg


    Thank you very much, Justin – it works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.