Adding background image with text the middle of it.

Chubaka
Excursionist
14 0 5

Hello. I've tried to add an image to the background of a section by other solutions but it didnt work. My question is: how do I add an image to the background of a section and add text on it (I want to make a about us section in the website) my website is : Pilassia.com

Replies 9 (9)
Chubaka
Excursionist
14 0 5

Chubaka_0-1708344569371.png

Chubaka_1-1708344838244.png

these are the options I have to add to my page. what do I do from here?

DigiDecoded
Shopify Partner
144 18 17

what theme you are using, i guess the image banner will help you to achive this

Danish | Full Stack Developer @ Esire.Inc
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Hire me for your next task! | Email | WhatsApp | Website
Chubaka
Excursionist
14 0 5

Chubaka_1-1708424312181.png

this is the image banner but the problem is that i want the background (the space marked in red) to be transparent.

Made4uo-Ribe
Shopify Partner
5358 1294 1586

Hi @Chubaka 

If you like to add image background on a section. For example your feature collection. 

You can add css code, and choose the right selector to use. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.collection.section-template--22166183411993__featured_collection-padding {
    background-image: url('path/to/your/image.jpg'); /* Replace 'path/to/your/image.jpg' with the path to your image */
  background-size: cover;
  background-position: center;
}

 

And Save. 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Chubaka
Excursionist
14 0 5

Chubaka_0-1708424107558.png

this is the code that I've added and it still doesn't work. maybe the theme background over-ride the image that I'm trying to add?

Made4uo-Ribe
Shopify Partner
5358 1294 1586

Would you mind to share the preview where you paste this code? Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Chubaka
Excursionist
14 0 5

Chubaka_0-1708514111506.png

Ty for the help my man

Chubaka
Excursionist
14 0 5

maybe the image is too big? I've uploaded the image to the content tab in the admin dashboard, does it mean that the image isn't too big? ty for the help btw

Made4uo-Ribe
Shopify Partner
5358 1294 1586

Im not sure about it, when I dont see and check the problem I cant comment anything. 😅

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com