Solved

Changing background image in the Debut theme

maggiemaze
New Member
7 0 0

Hey!

I'm trying to add a custom background image to my shop but it doesn't work out 😕

I saw some tutorials that mention the Theme.scss.liquid file under the Assets menu, but this asset is missing for some reason.

Even when I try adding a new copy of the Debut template this theme.scss is nowhere to be found.

 

Any ideas what can be done?

Accepted Solution (1)
PeanutButter
Shopify Partner
385 67 181

This is an accepted solution.

 

Is this what you wanna achieve?

Screen Shot 2021-01-18 at 11.17.08.png

This is a short video of the effect when scrolling: http://somup.com/crVF6Do3fJ

If this is it, then the steps are:

- Go to your theme and click in Actions > Edit Code
- Add the image you wanna use as background to the Assets folder by clicking in Add a new asset:

Screen Shot 2021-01-18 at 11.25.09.png

 My asset was named bananas.png

Now open your image clicking on it in the left column of the code editor and right click on the image to open the contextual menu

Screen Shot 2021-01-18 at 11.38.33.png

And click on open image in a new tab (this is with google chrome)
In the new tab where the image opened, copy the url from the browser address bar

Now open the Assets/theme.css file and copy the following at the end of the file, replacing the image url with yours:

 

body {
    background: url(https://cdn.shopify.com/s/files/1/0113/4044/7844/t/7/assets/bananas.png);
    background-attachment: fixed;
}

 

 

Peanut Butter Collective | Shopify Experts
- Was my reply helpful? Please Like and Accept Solution.
- Want to customize and improve your store? Hire us.
- Feel free to contact me us hello@peanutbutter.es

View solution in original post

Replies 15 (15)