Adding Background Image to Image With Text

Solved

Adding Background Image to Image With Text

Answer_Seeker10
Tourist
5 0 4

I'm trying to replace the light grey background with an image. I've input custom CSS as below but for some reason it won't replace this with the image. What am I doing wrong here???: 

 

Answer_Seeker10_1-1726839968258.png

 

.image-with-text { background-image: url(“https://cdn.shopify.com/s/files/1/0844/8376/8593/files/Test_Tile_Background.png?v=1726705249”);

background-size: cover;

background-position: center;

background-repeat: no-repeat; width:100%; }

 

Accepted Solution (1)
Tech_Coding
Shopify Partner
309 81 72

This is an accepted solution.

@Answer_Seeker10 

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--21540082581777__image_with_text_GcbgTd .section-template--21540082581777__image_with_text_GcbgTd-padding {
      background-image: url(https://cdn.shopify.com/s/files/1/0844/8376/8593/files/Test_Tile_Background.png?v=1726705249) !important;
  }
</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.

View solution in original post

Replies 7 (7)
Answer_Seeker10
Tourist
5 0 4

Hey Asad, thanks for the response but can you clarify what you mean? 

 

Are you saying its not possible to have an image back there but only a color? I have seen image with texts that have images as backgrounds

Tech_Coding
Shopify Partner
309 81 72

Hello @Answer_Seeker10 
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.
Answer_Seeker10
Tourist
5 0 4

Sure no problem - 

 

www.moomoosteas.com

PW: tohfea

Tech_Coding
Shopify Partner
309 81 72

This is an accepted solution.

@Answer_Seeker10 

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--21540082581777__image_with_text_GcbgTd .section-template--21540082581777__image_with_text_GcbgTd-padding {
      background-image: url(https://cdn.shopify.com/s/files/1/0844/8376/8593/files/Test_Tile_Background.png?v=1726705249) !important;
  }
</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.
Answer_Seeker10
Tourist
5 0 4

This worked great!! Thank you BSS I really appreciate your help!!

BSS-TekLabs
Shopify Partner
2350 702 827

- Here is the solution for you @Answer_Seeker10 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
.image-with-text.collapse-corners:not(.image-with-text--overlap) .grid:not(.image-with-text__grid--reverse) .image-with-text__content::after {
    background-image: url(https://cdn.shopify.com/s/files/1/0844/8376/8593/files/Test_Tile_Background.png?v=1726705249) !important;
}
</style>

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Answer_Seeker10
Tourist
5 0 4

Hey BSS, 

 

Thanks for the response! So I did that and what I got was the below: 

 

Answer_Seeker10_0-1726841569399.png

 

I guess I was unclear but I want that image to be in the light gray area in the background behind the 2 main information panels. Does that make sense? Sorry about that