Custom HTML/Components
We have a pretty large grid on one of the pages with zoom-boxes.
The boxes always load imgages in a high resolution, eventhough less than half of it is needed at least in 3 of 4 display breakpoints.
Furtheron the grid is not working with lazy loading of wp-rocket.
There seems be no way to make the images use a srcsets.
So finally I'd like to replace zoomboxes with custom HTML, which is a pain in the ass due to the editor settings which rewoves/replaces elements - not sure if that's some kind of restriction of inline editing in general or based on the settings.
In addition the grid seems to do some respositioning by JS making it even harder to get things done.
Our customer wants to keep the gridded layout, so we need something using srcsets. Probably the best way would be adding custom HTML, because IMO there's missing one image size around 400 px to make the sourceset eficient. We already added that.
Is there any way to control the visual editor or add a custom component for grid-boxes?
In addition can we do anything to get lazyload to work with the grid?
Thanks in advance
Comments