Skip Navigation

[Resolved] Gallery Issue Blocks 1.6

This support ticket is created 2 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by JoelK2744 2 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#2127835

Hello, I've updated to blocks 1.6 on our test site and when on mobile there are big gaps between the gallery cells. Here is an example - hidden link - if you compress the browser so the site responds to mobile, and then scroll down to the gallery images you will see the big gaps. This is what it's meant to look like (this is with Blocks 1.5.3) - hidden link

I've tried clearing caches etc and I can't see any obvious changes in the CSS.

Thanks

#2128493

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

While, I can see the extra gaps between the gallery images on smaller screens on your website, I couldn't reproduce this on my test website.

As a quick fix, you can include this custom CSS code in your content template and the gaps will be removed:


@media only screen and (max-width: 768px) {
.tb-gallery--grid:not(.tb-gallery--grid--nocrop) .tb-brick__content {
	margin-top: -100%;
}
}

To investigate this further, I'll need to see exactly how this gallery block is set up in the admin area, to reproduce this on a test website.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#2129717

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for sharing these details.

During further investigation, I found that this custom CSS code from WP Admin -> Appearance -> Customize -> Custom CSS, is responsible for the extra space/gaps:


#listing-gallery .tb-brick__content {
		height: auto!important;
		position: inherit!important;
	}

If you'll remove it, both the galleries will show with correct spacing on the smaller screens.

#2129753

Ah great, thanks Waqar. I'd forgotten about that snippet, looks like it's no longer needed.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.