Shopify themes, liquid, logos, and UX
Hi, can anyone help me, please?
The image I have uploaded into 'Image with text overlay' won't resize at all for the mobile view. Debut theme. I have tried some of the suggestions on here already with no luck.
Thank you in advance.
Solved! Go to the solution
This is an accepted solution.
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.scss.liquid and paste this at the bottom of the file:
.hero[id]{
background-size: contain !important;
height: 41vw !important;
width: 100% !important;
}
Hello,
Thank you for your question.
Please share your store URL, page URL and also password (if your store has one) so we can help you.
Kind regards,
Diego
Hello,
I am having the same issue, please could you kindly help me to resolve this?
Many thanks,
Jordana
Sorry for facing this issue, it's my pleasure to help us.
Welcome to the Shopify community!
and Thanks for your Good question. 😊
Please share your site URL,
So I will check and provide a solution here.
I'm using Debut. It's gray at the bottom after I added the code. Did anyone get it fixed? Please help, thank you.
Sorry for facing this issue, it's my pleasure to help us.
Welcome to the Shopify community!
and Thanks for your Good question.😊
Please share your site URL,
So I will check and provide a solution here.
sorry
I have inserted the correct url. Thank you
thanks
sorry i can't see any issue can you please share issue images?
There's this gray part appearing on top and at the bottom of the image.
sorry for this issue yes, please add this code
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.css ->paste below code at the bottom of the file.
this code apply for after 5 - 6 second
.hero {background-color: transparent;}
Hello, @Shelley_NR
Welcome to the Shopify community!
and Thanks for your question.
Please share your site URL,
So I will check and provide a solution here.
Hi,
Thank you for responding.
URL - naturallyrustic.com.au
Password - RusticNaturally
Main image on the home page is the issue.
Thanks so much. Look forward to a solution to solve this.
Jayne.
This is an accepted solution.
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.scss.liquid and paste this at the bottom of the file:
.hero[id]{
background-size: contain !important;
height: 41vw !important;
width: 100% !important;
}
Thank you dantepw - Worked like a charm.
You're welcome! Wishing you a nice week.
Hey Diego, i hope you are in good health. I have the same issue that the image won't resize on mobile. i tried your which was given here. but it cuts my image from the bottom and leaves grey space there. I will be very grateful if you can help I have been looking for a solution and it's hectic. Thanks
My page URL
I applied the solution but now the desktop version has gray areas above and below the image. Any way to get rid of those?
Hi. Having the same issue but I do not see theme.scss.liquid in my assets folder. What do I do? Thank you
@ToneGear you look for a similar main CSS file holding your themes style rules.
It can be named anything, styles.css, main.css store.css etc and varies wildly by theme
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Thank you. That worked but it shrunk both the desktop and the mobile version way too much. Any idea how to fix that?
@ToneGear wrote:Thank you. That worked but it shrunk both the desktop and the mobile version way too much. Any idea how to fix that?
The original solution was for Debut you can't just slap the code in without adapting it for your theme, you'll have to find the proper spot in your theme so it only applies to desktop breakpoints.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Thanks form the future! Huge help!
it's my pleasure to help us
I have the Debut Theme and added the code but nothing changed. My URL is https://bossqueenboutique.com/ Please help!
sorry for that issue can you please try this code
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
@media only screen and (max-width: 749px) {
#shopify-section-hero .hero--medium {
height: 160px;
background-size: contain;
}
}
This worked! Thank you so much!
its my pleasure to help us
Hello, I am having the same issue is everyone in this thread. I did find where to paste the code, however that code set it permanently to display in mobile view. Is there a way to have the image change sizes to fit the appropriate user whether they are on mobile or web browser. Thanks in advance.
Same here. I did pasted the code but when I switched to the mobile view mode, the view got a bit weird as there are gray colors on both above and bottom of the pic. Any help from the admins?
Hi Diego apparently I have the same issue described. I have used the code listed but it did't work on mobile.
website link www.nopineappleonpizza.com
Is there anything else I can do to make it work?
thanks
Hi,
I have tried all the solutions suggested in here and none have worked. I'm having this exact issue: The image I have uploaded into 'Image with text overlay' won't resize at all for the mobile view on debut theme. Is there anything else I can try? It looks awful.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024