I’ve added a background image to my Shopify store using the “Sense” theme, but it’s currently only visible behind the header and between sections, not in the sections themselves. Can anyone help me make the background image visible across the entire site, including the sections?
body {
background: var(--gradient-background);
background-attachment: fixed;
background-image: url(https://i.ibb.co/YBYgnt9p/image-fond2.jpg) !important;
background-color: transparent !important;
background-position: top left !important;
background-size: auto !important;
min-height: 100vh; /* Ensures the body takes up the full height of the page */
margin: 0;
padding: 0;
}
Also, I had to reduce the quality of the background image to make it work on Shopify. How can I upload a higher-quality background image without it being compressed or losing quality?
Any help or suggestions would be greatly appreciated!
thank you, but it is still not working unforunately. I see it works on your screenshot but when i add it, the background becomes white. Could you share your code ?
Yes, and I would like to have it also showing on the background of the “browse latest products” section. so only the card with the text stays black and the image stays an image. Do you think it is possible ?