All things Shopify and commerce
In the mobile version of my website. I noticed that one of the image banners has it's text working fine on Desktop. However, on the mobile version the text has escaped into a section below instead of remaining on the image banner. How do I ensure it remains on the banner instead of escaping?
Solved! Go to the solution
This is an accepted solution.
No code needed, just turn off "Container" in section settings:
hello @HighTide_Ceylon
please give me your website Url.So i can find the problem.
thanks
hello @HighTide_Ceylon
Go Online Store > Themes > Customize > Theme Settings > Custom CSS
Or use the code editor via Edit code > theme.liquid or base.css.
Paste this CSS:
@media (max-width: 767px) {
.image-with-text__content {
position: absolute !important;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
text-align: center;
width: 90%;
color: white; /* Adjust for contrast */
}
.image-with-text__media {
position: relative;
}
.image-with-text__media img {
width: 100%;
height: auto;
display: block;
}
}
If this was helpful, hit the like button and accept the solution.
Thanks
Hey,
I updated my 'base.css' file with the snippet you shared, but it doesn't show any changes. The text still remains in the section below on mobile.
This is an accepted solution.
No code needed, just turn off "Container" in section settings:
This solution does not work. Container was toggled off.
Both for Desktop and Mobile? There are 2 toggles.
Yes, both toggles are off.
***Correction***
Just noticed that it was switched on Mobile. Didn't notice there was a separate container toggle for Mobile Layout. Thank you so much!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025