How To Add Background Image To Shopify Store (2024) Full Guide
2K views
Feb 14, 2024
How To Add Background Image To Shopify Store (2024) Full Guide
View Video Transcript
0:00
How to add a background image to your Shopify store
0:03
Hey guys, welcome back. In this video, I'll be showing you how you can get started with adding
0:09
background images to your Shopify store. So let's get into it. Now, one thing to keep in mind
0:15
is that this video is going to have a little bit of code, but don't worry because I'm going to
0:20
break it down for you guys. I'm going to leave this code in the description box down below
0:24
and you don't have to code at all. You just have to copy and paste this and I'll break it down exactly how
0:29
you have to do that so don't worry at all now let's get started so what do I mean by
0:36
the background a lot of people think oh you can just replace the image this is the
0:40
background isn't it no when I'm talking about the background of my Shopify
0:45
store I actually mean the entire background so you see this padding on the right
0:49
and left all of that is included in the background my header does not have
0:53
color so this is also just a part of the background and my background is plain
0:57
white so to customize this and add my own image or you know my own background one thing i need to do
1:04
is to upload my image so i have this image that i want to add or maybe this one and if you want to
1:10
upload your own image just go into file mill.com and you can click on add files and you can choose
1:17
whichever image you want to make as your background there could be any image you can just open that up
1:23
and click on send and once you upload your file you can get a link
1:27
that you can use in your Shopify store that we're going to be using to actually integrate this
1:33
as the background now how do you add the background well the first thing you have to do is click on
1:39
your online store on the left panel once you click on online store over here you want to click on
1:46
these three dots over here and click on duplicate now the reason that we are duplicating our store
1:51
is because if you ever mess up the code of your store you always have a pre-executive
1:57
existing backup or a copy of the original code and you can restore it back to its original state instead of having to worry later on that if you ever just mess up anything you have a pre-existing copy to go back onto now after this what you're going to do is you're going to click on these three dots and then click on edit code now this will open up the code editor of shopify and you will see multiple different sections you have your layouts you have templates sections snippets configure
2:27
locales and assets Just click on assets and within assets you will find the second option or the first option maybe which is going to be base dot csss i just going to open up base csss now in base dot csss you want to scroll to the bottom and once you scroll to the bottom what
2:48
you're going to do is you're going to take this code over here you're just going to copy this code and i'll
2:53
leave this code in the description box down below and what you're going to do is you're going
2:58
to enter give it some space and click on paste over here now once you do that you're going to
3:04
see your background color, background position, and then your background image. In this section over
3:09
here where it says copy here, you're just going to insert the URL that you have of your
3:15
particular background. We're just going to click on copy. And once we click on copy, we're going to
3:21
paste it and replace the copy here section. Now I'm going to click on save on the top right. And
3:28
now let's take a preview of our store. So this is our store and we have to
3:34
have our link added so make sure that your link has been added and now we can edit the code
3:40
once our code has been edited the background should appear if you're having issues with your
3:46
background so i edited the code on this and just to make sure i'm going to go back into my
3:54
section over here and scroll down yeah so we have our image added and i'm going to go on ahead and
4:03
preview our store now you guys can see the image is not being added the reason for this
4:08
might be your file size if the file size is too small then your image might not be added
4:15
to your store so it's better to just wait a couple of seconds to make sure if your
4:20
image is loading up or not and then you can view your online store to take a look
4:25
now if your image has too much of a lower resolution then it's not gonna get
4:32
added but i'm going to click on customize i'm going to click on these three dots and click on
4:39
edit code and then you can go back into the assets within assets you're going to go into base csss
4:47
and base csus just scroll down and once you scroll down you're just going to add this code
4:55
so we're going to remove all other sections and then just copy this and then add it
5:02
over here and then you are going to copy image address and then you're going to
5:09
paste it over here like this so now I going to click on save and once you done that you should be able to see your particular image that is going to be shown in the background so I will take a higher resolution
5:25
image because the images that I have previously used have been a bit more of a
5:31
lower quality so if I go ahead and go into Google and just search for background
5:38
because those are obviously made in higher resolutions let's take this one over here
5:43
I'm going to click on Open Image and New tab. And I'm just going to copy the image link and we're just going to view our store right now
5:53
And then going back into our code, clicking on Edit Code, going into the base CSS, scrolling down
6:03
and then inserting our URL over here like this. I'm going to click on save on the top right
6:10
And then I'm going to click on Preview Store to be able to. to see whether or not our changes are being made to our store so make sure you also keep in mind
6:21
the border attachment the background variation your background color you have transparent we're just
6:28
going to remove that we can click on format and click on preview store now if you're having images
6:37
or if you're having issues with adding your images depending on the resolution and whatnot we're
6:42
we're going to add a alternate code instead so if you want to set up the background image you can go into
6:50
c ss background image property and you are just going to copy this code over here and you can go
6:57
into your store click on the three dots and begin editing the code once more and once you edit the
7:05
code you're going to go back into the same thing you're going to go into your assets so once you're
7:11
you go into assets go into base ds.s. You're going to scroll down. And then you're going to
7:18
click on this code. And after that, you can copy the image URL. And instead of paper Jif, you can
7:27
add whatever it might be. So I've just added this URL. And then you're going to click on
7:33
save over here. So after going through a couple of changes, I realized that we skipped
7:41
out on a dot in our code that we created. So that is why we were facing some issues. Now
7:48
I know a lot of people might be thinking that hey if I skip out on a dot is it going to ruin my website As you guys just saw it wasn doing anything because it wasn actually you know appearing in my code So you have to make sure you copying the first dot that you have
8:05
in your code. And then you're going to click on over here. I've already, you know, added the image
8:10
but I'll show you guys how to do it again. So I'll just take any random image. I'll just search
8:16
for backgrounds over here. And let's take, um, just taking a look at some of the backgrounds
8:23
this one over here I'm going to open this image in a new tab you can choose any image
8:27
that you want or that you might have created and try to make sure it's a high
8:33
resolution image simply because otherwise it's going to copy and paste the same image
8:38
over and over again so that can be a bit annoying to look at so I like to make
8:45
sure that the image is larger in size let's say for example if it's like this or
8:53
whatever you know even if it's like a plain color I just want it to be larger in size I'm
8:58
going to open this image in a new tab and now I'm going to click on edit code I'm going to go into
9:06
assets going to base CSS scroll down and I'll just cut all this and then I'm going to copy the same
9:14
code again making sure that I'm copying my entire code and then I'm going to copy the image link
9:22
that we have and then go back into the section over here and click on paste and then we're going to
9:29
click on save on the top right and once you've done that we can click on preview store and you guys can
9:35
see the background has now been replaced with this image so wherever i hadn't added any image or
9:42
background it's automatically adding our default background which is now this image so in this way you
9:48
you can add your own background images now if you want to make these more you know precise then you can go on to w3 schools
9:57
dot com over here you can actually find multiple different types of you know codes and you can just go on ahead
10:04
and copy these codes like this and you will be able to see how it's going to appear and you can make
10:12
your backgrounds more customizable you can go into the CSS codes and if i want a CSS image if i
10:18
I want dual images like this. I can just open this up and then I can copy my code over here to enter my URL and enter my own customized code elements into my Shopify store
10:32
So I hope you guys found this video helpful. If you did, make sure to leave a like and subscribe
#Skins
# Themes & Wallpapers