WordPress theme: featured image as Background

I am currently trying to create a WordPress theme with Blocs, and I wanted to know if there were any way to make in sort that a bloc’s background corresponds to the featured image of a post?

Thank you in avance for your help! :sweat_smile:

That’s beyond my rather meagre skill level with WordPress. Possibly something that @Norm or @brechtryckaert might know.

Hi Mehdi,

I think you can see the solution in this tutorial from Norm.

1 Like

Well actually there is. You could use this technique:

Edit: seems @Eldar was quicker. That’s what you get when taking a call in between answering and publishing the answer :stuck_out_tongue:

1 Like

Thank you a lot! :smiley:

Haha! It’s okay! Thank you a lot! :blush: