In a posts query loop, I need to set objet-position on my featured image with a value coming from a custom field associated to the post.
As Bricks does not currently accept dynamic custom fields in element CSS setting or object position setting, how can I retrieve element’s id in the loop to output the right CSS in a code block?
But it’s not optimal since I need to write the CSS for all objet combinations combinations.
I think it would be less optimal if Bricks did this. It would mean a few lines of CSS for every single element inside of a loop. I think the attribute solution is the cleanest (in terms of how much CSS needs to be added)
I was not thinking of Bricks doing all the combinations for me, of course.
I wanted something automated, something like this in CSS setting for instance: