All things Shopify and commerce
text on image banner on homepage doesn't stay on image when seen on mobile
The text I need to be responsie and stay on the image is : Pop, Scoop and enjoy.
password is saghoo
Tahnk you!!
@blublu ,
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file theme.liquid.
Step 3. Add this code above </body>
<style>
@media only screen and (max-width: 768px) {
#Banner-template--16207740633157__image_banner .banner__media.media{
min-height:438px;
}
#Banner-template--16207740633157__image_banner .banner__content {
top: 134px;
position: absolute;
}
#Banner-template--16207740633157__image_banner .banner__content .banner__box {
background: transparent;
}
}
</style>
Result
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
How can I have the text staying exactly at the same place on desktop and mobile please? Your code helps to keep it on the image but on MOBILE it becomes centered on image.. I want it to stay at the right
@blublu , add this in your section-image-banner.css file
@media only screen and (max-width: 767px) {
.banner__box {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.banner__box .banner__heading {
font-size: 36px;
width: 200px
}
}
result:
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hi,
Dawn theme has the setting for this. you do not need to edit the theme's code. Go to theme editor > Image Banner section > Uncheck the "Show container on mobile" setting.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025