Jan 13, 2022 2:41 PM
Hey everyone, I need some help here.
SCENARIO
I’m building out a dnd template for a theme. I’d like to have a section that contains a multi-layer background. The background contains 3 gradient layers, an image layer, and a blend-mode for each layer.
CSS
background: linear-gradient(to right, rgba({{ bgColor|convert_rgb }}, 1), rgba({{ bgColor|convert_rgb }}, 0)),
linear-gradient(to right, rgba({{ bgColor|convert_rgb }}, .5), rgba({{ bgColor|convert_rgb }}, .5)),
linear-gradient(to right, #fff, #fff),
url({{ bg.bg_image.src }});
background-position: {{ convert_position(bg_hor, bg_vert) }};
background-size: cover;
background-blend-mode: normal,
normal,
saturation,
normal;
background-repeat: no-repeat;
IDEAL SOLUTION
POTENTIAL WORKAROUNDS
Jan 13, 2022 10:02 PM
Hey @r_levine
I've not done this but you might be able to use reusable sections with a template partial to build this out.
Hope this gets you going in the right direction!
Jan 14, 2022 9:21 AM - edited Jan 17, 2022 9:44 AM
Thanks @Kevin-C . Unfortuantely, that's workaround #1 (the dnd section mentioned could be a section template), which could work, however I can't find a way to hide the dnd section options from the content editor.