How can I use a custom background image with the Whisk theme?

Hi all,

I’ve tried a lot of stuff, but I just can’t seem to get it right.

I would like to use a custom background image on my website.

I’m using the Whisk theme.

https://beestn.nl

Password: 123

Custom image: https://cdn.shopify.com/s/files/1/0795/0152/5323/files/website-bg_01128c66-6d1c-4138-be9a-b269e66aad6c.jpg?v=1708505270

Any help is appreciated, thanks!

Hi @Gijsvl

Do you mean like this?

check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

body.password-layout.theme-style--soft {
    background-image: url('https://cdn.shopify.com/s/files/1/0795/0152/5323/files/website-bg_01128c66-6d1c-4138-be9a-b269e66aad6c.jpg?v=1708505270');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}
section#shopify-section-template--20692095009099__main .color--underneath-default {
    background: transparent;
}

And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi! Thats perfect, but I meant throughout the whole website. Not on the password page. Thanks!

On the white sections of the webshop :slightly_smiling_face: thanks

Oh, i thought only for password page. Let me check again.

Check this one. Same instruction.

body.page-layout.body--template-index.theme-style--soft {
    background-image: url('https://cdn.shopify.com/s/files/1/0795/0152/5323/files/website-bg_01128c66-6d1c-4138-be9a-b269e66aad6c.jpg?v=1708505270');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}

main#MainContent * > :not(a.button) {
    background: transparent;
}
.color--underneath-default {
    background-color: transparent;
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Works almost perfectly! The image doesnt show up in the white sections in the header and footer. Do you know how to fix that?

Also, if possible, i would like the image in every page of the website, not only the homepage.

I really appreciate the help!!!

In the banner, you need to take out the blurry design so we can add it. Please replace with this code again, i didnt notice that your body selector can call specific pages.

body.page-layout {
    background-image: url('https://cdn.shopify.com/s/files/1/0795/0152/5323/files/website-bg_01128c66-6d1c-4138-be9a-b269e66aad6c.jpg?v=1708505270');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}
main#MainContent * > :not(a.button) {
    background: transparent;
}
.color--underneath-default {
    background-color: transparent !important;
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

That looks great! So it’s not possible to let the texture flow into the banner? It’s a webp so the blurry design should be transparent.

If not, no worries and thanks alot!

Nope I cant change it, I already try to change. The image banner have different design which the background is overlay not on the back.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!