Skip Navigation

When using a certain amount of images in galleries while Toolset is active, the galleries might not display

Resolved

Reported for: Toolset Views 3.1.0

Symptoms

There are several cases where galleries in general (native WordPress gallery or third-party gallery like Foobox Gallery) will not display on the front-end of a website using Toolset.

Usually, this will happen only after a certain amount of images has been added to the gallery in question.

For native WordPress galleries the limit is somewhere above 30 images. After that, no gallery will be displayed. For Foobox, it is lower.

Ultimately the issue is due to how many fig HTML tags are present on a page. Above a certain amount of these tags, the output will break, so you could see this issue even when custom coding image output.

Workaround

You can download this file, extract it and use it to replace the existing Placeholders.php file in either the ../wp-content/plugins/wp-views/vendor/toolset/blocks/server/Block/Image/Content/ or ../wp-content/plugins/toolset-blocks/vendor/toolset/blocks/server/Block/Image/Content/ folder, depending whether you use Toolset Blocks or Toolset Views plugin.

Comments are closed