We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to make image banners section according to my need?

Solved

How to make image banners section according to my need?

BoldAttire
Excursionist
37 0 5

Hi, i have used image_banner section in my shopify dawn theme but it is not behaving like what i want. see image_banner can contain two images which will take size according to the view-port but when i insert content like heading and paragraph with a button it is not pleasant in the desktop view. it's alignment is totally messed up in desktop view but it is taking right alignment in mobile view. see these two images for reference.

This is what i am getting:

 

image_banner_with_content.pngimage_banner_mobile_view_with_content.png

 

 

This is what i want:

wanted.png

 

it should remain seperate. means content must remain in one image and should take alignment according to that specific image or div only. it should not be messed up in desktop view.like below image:
image_banner_with_content.png

 

store url with password is shared in below image:
brinjal url and password.png

 

help me to resolve this issue.....

Accepted Solution (1)
Shadab_dev
Shopify Partner
1583 83 173

This is an accepted solution.

On the same file do this at the very bottom

@media(max-width: 767px){

.banner__content{

bottom: 0;

}

}

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.

View solution in original post

Replies 10 (10)

Shadab_dev
Shopify Partner
1583 83 173

So you need two images on desktop view but not stick together but have space between them. If I am getting this right then you can upload two images one for desktop and one for mobile.

 

So for desktop use canva or any other tool to have two images in one single image like you want. And for mobile any one. 

 

You have kind of posted a lot more photos and kind of mixed it up with image and content, so it's kind of confusing as well. Trying to suggest as I understood this. 

 

Best

Shadab

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
BoldAttire
Excursionist
37 0 5

i want images as it is but content aligned according to second image which is center aligned in one image. by content i mean heading, text and button. the content is ok in mobile view just in desktop view it is not aligned and confined in second image.

BoldAttire
Excursionist
37 0 5

if it is difficult let me know how to make only second image clickable......please help with this issue

Shadab_dev
Shopify Partner
1583 83 173

Sorry for the late reply, but one thing is you were able to move it to the right side. To completely contain it within the right side add this to the very bottom of section-image-banner.css file

@media(min-width: 768px){

.banner__box{

width: 45% !important;

}

}

This will confine it to the right side like this

 

Shadab_dev_0-1733889650737.png

 

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
BoldAttire
Excursionist
37 0 5

but in mobile view it still doesn't confined in the second image see screenshot:

Screenshot 2024-12-11 111626.png

Shadab_dev
Shopify Partner
1583 83 173

This is an accepted solution.

On the same file do this at the very bottom

@media(max-width: 767px){

.banner__content{

bottom: 0;

}

}

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
BoldAttire
Excursionist
37 0 5

thanku so much it resolved my issue!!!!!!!!!!

Shadab_dev
Shopify Partner
1583 83 173

I can feel the satisfaction in your comment and it is a great feeling. Glad i could be of help Alhamdulillah.

Until next time, Good luck on your store and your Business.

Best
Shadab

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
BoldAttire
Excursionist
37 0 5

can you also give code to insert image between the text and the button in second image where text is confined in second image? like the below image:
Screenshot 2024-12-11 132944.pngScreenshot 2024-12-11 133118.png

Shadab_dev
Shopify Partner
1583 83 173

Yeah, I can and to be honest this ain't too advanced as well but this will need modifying some code in the theme file and also styling purposes.

 

So I would definitely ask for a small fee for this and if you are ok I will need collaborator access to your store to edit code.

 

If this sounds any good, please reach out via personal links below for a convenient conversation and collaboration.

 

Best

Shadab

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.