I have a background image module set-up but the image behind the video is not showing up as a background image. If I remove display none the image shows but only as an image and not as a background image.
I have the same problem but with Hubspot free theme Skyline_HubTheme, none of the Background images show up.
I am not a programmer,
Here is what the javascript code shows:
/**
* Set Banner Image on Homepage
*/
// Grab the SRC of the Background Image module uploaded image
var bannersrc=$(".background-image").find("img").attr("src");
// Apply the src as the background image for the banner area
$(".banner-background").css('background-image', 'url(' + bannerSRC + ')');
/**
* Set Services Image on Homepage
*/
// Grab the SRC of the Background Image module uploaded image
var servicesBannersrc=$(".services-image").find("img").attr("src");
// Apply the src as the background image for the banner area
$(".home-service-background").css('background-image', 'url(' + servicesBannerSRC + ')');
And here is what the CSS code shows for the banner:
Need a little more info on what you’re trying to achieve here but from what I see, you’ve dropped an image in to be used as a background but included it as a block level element.
You either need to adjust your module to have the image as a background image (assuming this is a custom module) or adjust the current code with css to position it beneath the content using position: absolute and such to take it out of the DOM structure then resize it to fill the parent container element.