Shopify themes, liquid, logos, and UX
Hello! I am NOT a coder. After searching the database, I came across a code, but it didn't work for me. I want to use this background: https://unsplash.com/photos/R53t-Tg6J4c. The grainy background itself. Can someone help? And be specific about where to copy and paste?
Thank you!
Solved! Go to the solution
This is an accepted solution.
Please add the following CSS code to your assets/base.css bottom of the file.
.gradient {
background: var(--gradient-background);
background-attachment: fixed;
background-image: url(https://cdn.shopify.com/s/files/1/0461/7633/8071/files/nordwood-themes-R53t-Tg6J4c-unsplash.jpg?v=1649213231) !important;
background-color: transparent !important;
background-position: top left !important;
background-size: auto !important;
}
Thanks!
Hi @thall009 ,
Please share your store URL and if your store is password protected then please provide password too.
So that we can help you.
Thank you.
Hi @thall009 ,
You can follow the instruction below:
1. Go to Online Store->Theme->Edit code
2. Asset->/base.css->paste below code at the bottom of the file:
body {
background-image: url(https://cdn.shopify.com/s/files/1/0581/7437/4095/files/bg.avif?v=1649205369) !important;
background-color: transparent !important;
background-position: top left !important;
background-size: auto !important;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
I copied and pasted the code. I do not see the grainy image.
Hi @thall009 ,
If you use dawn theme, you can try follow the instruction below:
1. Please download the image you want to use on your computer. Go to Online Store -> Settings -> Files then upload image in the Files and copy url of image.
Ex:
2. Go to Online Store -> Theme -> Edit code.
3. Asset -> /base.css paste code below into end of the file. Please change the url in the code to your url of the image.
.gradient {
background: var(--gradient-background);
background-attachment: fixed;
background-image: url(https://cdn.shopify.com/s/files/1/0461/7633/8071/files/nordwood-themes-R53t-Tg6J4c-unsplash.jpg?v=1649213231) !important;
background-color: transparent !important;
background-position: top left !important;
background-size: auto !important;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
HaloThemes - Top Premium Shopify Theme Provider
Ella Shopify Theme OS 2.0 - #1 Best Selling Shopify Theme of All Time
Want to try Shopify? Open a Store for FREE
I did exactly what u said and it worked but i had to replace (background-size: cover !important;)
auto word to cover because only half of my image was visible. Thank u
This is an accepted solution.
Please add the following CSS code to your assets/base.css bottom of the file.
.gradient {
background: var(--gradient-background);
background-attachment: fixed;
background-image: url(https://cdn.shopify.com/s/files/1/0461/7633/8071/files/nordwood-themes-R53t-Tg6J4c-unsplash.jpg?v=1649213231) !important;
background-color: transparent !important;
background-position: top left !important;
background-size: auto !important;
}
Thanks!
I wanted to know how I can add a repeat image as a background in the dawn 5.0 theme. Can anyone help with the code?
Hi! This code works, but it is also applying to the header and footer. How can I make sure it only applies to the body?
It didnt work for my store. Can anyone help?
This worked to add the photo to the background, but it added the image separately to each section. For example it shows the image as the background of the image banner then separately as the background for the rich text instead of one continuous image for the whole web page. Is there anyway to have the one image applied to all sections evenly?
Hello !! I'm using this code but it is not working, but can you please help ???? pleaseeeee it's really urgent, pleaseeeeeeeee thank youuuuu !
Is there a way I can have the background image at a different transparent %. Instead of the image being at 100%, if I wanted the image to be at a 65% transparency?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025