Add an image background to a section for Salehub - vinova theme

Add an image background to a section for Salehub - vinova theme

edgeIT
Shopify Partner
38 1 3

Need to add an image in the background for vinova image gallery.

 

Green_Monochrome_Mood_Board_Photo_Collage.png

 

The Yard House (the-yard-house-india.myshopify.com) 

Replies 11 (11)

Tech_Coding
Shopify Partner
301 76 67

Hello @edgeIT 
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
edgeIT
Shopify Partner
38 1 3

TYH

edgeIT
Shopify Partner
38 1 3

Hi, can you please help with this

Tech_Coding
Shopify Partner
301 76 67

Please share screenshot of the section where you want to add background image.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
edgeIT
Shopify Partner
38 1 3

Screenshot attached.

 

Image attached.

 

Screenshot 2024-09-11 at 11.35.45 AM.pngGreen_Monochrome_Mood_Board_Photo_Collage.png

Tech_Coding
Shopify Partner
301 76 67

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
   #template--17211287208116__162027225853ce8974{
     background-image: url("URL_OF_YOUR_IMAGE");
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     width: 100%;
   }
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
edgeIT
Shopify Partner
38 1 3

I have pasted this, but does not work:

 

<style>
#template--17211287208116__162027225853ce8974{
background-image: url("https://cdn.shopify.com/s/files/1/0648/9777/7844/files/Green_Monochrome_Mood_Board_Photo_Collage.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
width: 100%;
}
</style>

edgeIT
Shopify Partner
38 1 3

screenshots enclosedScreenshot 2024-09-11 at 12.04.00 PM.png

Tech_Coding
Shopify Partner
301 76 67

sorry I did mistake

replace that code with this code

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
 #shopify-section-template--17211287208116__162027225853ce8974 .distance{
   background-image: url("https://cdn.shopify.com/s/files/1/0648/9777/7844/files/Green_Monochrome_Mood_Board_Photo_Collage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
   width: 100%;
}
</style>

Tech_Coding_0-1726041328897.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
edgeIT
Shopify Partner
38 1 3

Fantastic. this works. thank you very much.

Tech_Coding
Shopify Partner
301 76 67

your welcome @edgeIT 🙂
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Thanks

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.