Hi,
I’m using the Ritual theme version 3.2.1. I’d like to upload my own image and use it as a background for the footer section. If a custom coding is required, what and where should I add it?
Your response will be appreciated
Hi,
I’m using the Ritual theme version 3.2.1. I’d like to upload my own image and use it as a background for the footer section. If a custom coding is required, what and where should I add it?
Your response will be appreciated
Can you share your store url please.
You can do this:
Upload your image to the Content->Files area
Copy URL of this image:
In your theme go to Theme Edit-> Theme settings (cog icon)
Paste this code into “Custom CSS” setting:
footer {
background: url(an URL you've copied);
background-size: cover;
}
This code will zoom in your image to cover entire footer area – this may lead to some image cropping.
@itslaura123 it can be done using css, can you please share your website URL?
just upload your background image either in files or assets from coding
then just add this css
footer {
background: url('img link');
background-size: cover;
background-repeat: no-repeat;
}
Hi @itslaura123
If the Ritual theme settings do not provide an option to add a footer background image, this can be done with custom code.
First, upload your image in Settings → Files and copy the image URL.
Then go to Online Store → Themes → Edit Code and check the footer section file (such as footer.liquid or sections/footer-group.liquid).
After that, add the following CSS to your stylesheet (such as base.css or theme.css):
.footer {
background-image: url('YOUR_IMAGE_URL');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
Replace YOUR_IMAGE_URL with your uploaded image URL.
If the footer uses a different class name, you may need to inspect the element first to identify the correct selector.
Best regards,
Devcoder ![]()
Hi @itslaura123 ,
You can easily add a background image to your footer by following these quick steps:
.site-footer, footer {
background-image: url('YOUR_IMAGE_URL') !important;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
Hope this helps!
Thanks!