Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey everyone, I'm pretty illiterate with code in Shopify, and I'm having trouble adding a background image for the header and footer of the site. The theme I'm using is Venture.
I made this image to show what I want the end result to be, right now they are just black.
I'm not sure if the floating navigation (home, products, about) is a different part, and you cant have a seamless transition in the image, but I'm really hoping you can. When you scroll down, the image also has to attach to the floating nav.
If anyone can help me out here, or give there 2 cents, I would greatly appreciate it!
Thanks in advance,
Holden
Solved! Go to the solution
This is an accepted solution.
Hello @avenue5000,
1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss.liquid->paste bellow code in bottom of file
.site-header { background-image:url({{ 'image.jpg' | asset_url }}); } #StickyBar { background-image:url({{ 'image.jpg' | asset_url }}); } #shopify-section-footer { background-image:url({{ 'image.jpg' | asset_url }}); }
This is an accepted solution.
Hello @avenue5000,
1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss.liquid->paste bellow code in bottom of file
.site-header { background-image:url({{ 'image.jpg' | asset_url }}); } #StickyBar { background-image:url({{ 'image.jpg' | asset_url }}); } #shopify-section-footer { background-image:url({{ 'image.jpg' | asset_url }}); }
Hi I don't have the theme.scss option in my assets so i'm sure where i should be placing the script. could you assist?
Hi I don't have the theme.scss option in my assets either
Hello ,
is it normal that i 've tried many ways to charge an image in the header but it doesn't load?
I tried your solution , I tried others and it is always white ,
1/ when i put a color instead of transparent as below , the header change correctly to red
header.site-header {
background: red ;
}
but when i put
header.site-header {
background-image: url("1.jpg");
background: transparent;
}
or
header.site-header {
background-image: url("1.jpg");
}
nothing happens only white.
Could you please help?
Thanks,
Maya
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