Hi,
I was having the same problem as https://kriesi.at/support/topic/empty-background-image-property-on-each-section-element/#post-992250
but if I applied the code Ismael suggested I still ended up with bad html like:
<div id="av_section_3" class="avia-section main_color avia-section-default avia-no-border-styling avia-bg-style-scroll avia-builder-el-23 el_after_av_section el_before_av_section container_wrap fullsize" background-image:>
Notice the rogue background-image: at the end.
So to fix it I added the following code:
if($src != "") $background = "style = '{$background}'";
if ($background=='background-image: ') $background = '';
Could Ismael comment on if this is safe?
or is this a better solution https://kriesi.at/support/topic/w3c-validator/#post-994993
Hi isa_solutions,
Glad you got it working for you and thank you for sharing! :)
If you need further assistance please let us know.
Best regards,
Victoria