Is there a standard for custom modules for background images? I have a custom module that works perfectly with one template and not another (with very little variation between the two) and I have no idea why it won't work.
Here's my code for my custom module:
<style>
.main-image {
background: url('{{ widget.header_image.src }}');
background-size: 100% auto;
background-repeat:no-repeat;
background-position: center top !important;
}
</style>
Then I'm calling that style in the group in which I want it to appear.
Is there something that is more standard or better?