Solved

How To Add Image To Product Page Background? (Dawn)

milkandcookies
Excursionist
417 0 49

Hi,
How can I add an image to the background of my product page, like this sun for example:

milkandcookies_0-1707181975723.png

 

https://d10cbe-2.myshopify.com/products/signature-25-pack-pop-box

thanks in advance!

Accepted Solution (1)
Dan-From-Ryviu
Shopify Partner
7011 1325 1351

This is an accepted solution.

Sorry, please update code to this 

.product {
background-image: url('your image URL');
background-position: top right;
background-repeat: no-repeat;
}

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now

View solution in original post

Replies 8 (8)

Dan-From-Ryviu
Shopify Partner
7011 1325 1351

Please add this code to the bottom of base.css file in Online Store > Themes > Edit code 

.product {
background-image: url('your image URL');
background-position: top right;
}

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now

milkandcookies
Excursionist
417 0 49

Thanks @Dan-From-Ryviu!

I added your code and now see 6 images in the background. How can I adjust the code to just see 1 image in the background?

milkandcookies_0-1707189782251.png

 

Dan-From-Ryviu
Shopify Partner
7011 1325 1351

Please update code to this 

.product {
background-image: url('your image URL');
background-position: top right;
background-repeat: none;
}

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now

milkandcookies
Excursionist
417 0 49

Just tried it, but no change (the background image still appears 6 times)

 

Dan-From-Ryviu
Shopify Partner
7011 1325 1351

This is an accepted solution.

Sorry, please update code to this 

.product {
background-image: url('your image URL');
background-position: top right;
background-repeat: no-repeat;
}

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now

milkandcookies
Excursionist
417 0 49

thank you! How can I more accurately position the image using # of pixels from top/right, etc.?

Dan-From-Ryviu
Shopify Partner
7011 1325 1351

You can use # of pixel instead of top right in background-position: top right; code

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now

PageFly-Theodor
Navigator
360 51 54

Hi @milkandcookies 
This is Theodore from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
.product {
   background-image: url('https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg') !important;
   background-position: top center !important;
}
</style>


Hope this can help you solve the issue

 

Best regards,

Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.