Module for Background Image

Hello all. I’m attempting to use a module so a client can set their own background image—unfortunately, doesn’t seem to work as expected. Instead of using the variable it simply shows up as blank (as in background: url()). Help is much appreciated!

@rossatgrowth

A warning usually shows up in modules to tell you “HubL in your CSS or JavaScript won’t be parsed”. You would need to move the CSS into your HTML section either as a style block or inline. Also, you’ll want to use {{ module.background_image.src }} to render the src url of the image.

Worked like a charm! Interesting I didn’t get that warning.

Thanks, @alyssamwilie!

-Ross