Add image to header background on Dawn theme

Solved

Add image to header background on Dawn theme

StickerWorth
Tourist
8 0 1

Hi, i've been trying to add an image to the background of my header and footer on Dawn theme. I have has success with this code (in Assets > base.css) but it only works on desktop and not in mobile. You can see my site here: www.stickerworth.com. I want mobile to look how it does on the desktop. Thanks for your help 🙏 

@media screen and (min-width: 900px) {
header.header {
background: url("https://cdn.shopify.com/s/files/1/0809/0727/2537/files/Pngtree_white_smoke_in_black_background_11676...") no-repeat;
background-size: 100%;
}
footer.footer {
background: url("https://cdn.shopify.com/s/files/1/0809/0727/2537/files/Logo_Background_5.png?v=1719358909") no-repeat;
background-size: 100%;
}

}

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
11349 2224 2397

This is an accepted solution.

Hi @StickerWorth 

Please update your code to this 

header.header {
background: url("https://cdn.shopify.com/s/files/1/0809/0727/2537/files/Pngtree_white_smoke_in_black_background_11676...") no-repeat;
background-size: 100%;
}
footer.footer {
background: url("https://cdn.shopify.com/s/files/1/0809/0727/2537/files/Logo_Background_5.png?v=1719358909") no-repeat;
background-size: 100%;
}

- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

View solution in original post

Replies 7 (7)

Made4uo-Ribe
Shopify Partner
10038 2387 3013

Hi @StickerWorth 

It's password protected. 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
StickerWorth
Tourist
8 0 1

Hi, sorry the password is: gowrti

Dan-From-Ryviu
Shopify Partner
11349 2224 2397

This is an accepted solution.

Hi @StickerWorth 

Please update your code to this 

header.header {
background: url("https://cdn.shopify.com/s/files/1/0809/0727/2537/files/Pngtree_white_smoke_in_black_background_11676...") no-repeat;
background-size: 100%;
}
footer.footer {
background: url("https://cdn.shopify.com/s/files/1/0809/0727/2537/files/Logo_Background_5.png?v=1719358909") no-repeat;
background-size: 100%;
}

- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

StickerWorth
Tourist
8 0 1

This worked, thank you! I have marked as an accepted solution. Much appreciated 😊 

blackclovecandl
Visitor
1 0 0

I am new to web design in general so i apologize if my question is a bit obvious, but i am also trying to upload a photo to my banner. I see the code you left.  Where do i find the "header.header" section, and how i do i change that to be a photo on my system. 

 

Adaobichinenye
Visitor
1 0 0

hi thanks for your assistance. i used the CSS code you provided for my home page header section to upload a background image, it was successful but it didn't upload the entire image, just the upper part of the background image was uploaded to my home page header section. How can I fix this and ensure that the entire background image is uploaded to my home page header section. please reply. 

nativeblendz
Visitor
1 0 0

Hi, this is great but only extends the width of the header not the width rather than the full width of the browser. How can I make it go full width of the browser? Thanks.