Hi,
Within a query loop, the dynamic data {featured_image} as background image is only rendering when setup in styles tab on ID level.
When setup on class level nothing is rendered.
Anyone else?
Hi,
Within a query loop, the dynamic data {featured_image} as background image is only rendering when setup in styles tab on ID level.
When setup on class level nothing is rendered.
Anyone else?
Hi Ole,
Thanks so much for your report!
It renders on a custom class as well, but only the first or last featured image for ever item within the loop, since the class name is the same. If you set the featured background image on the ID, it’ll be converted to a class either way, and the [data-query-loop-index="0"]
will be used to apply the correct styles.
Basically, you can rename the ID to your desired class name (e.g. #my-custom-loop), so it gets generated like this:
.my-custom-loop.brxe-block[data-query-loop-index="1"] {
background-image: url(...);
}
If it worked using a custom class in one of the previous versions, it is a bug. If not, it is not. Have you tested it with a previous version?
Best regards,
timmse