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!!
hello @blublu
Go to online store ----> themes ----> actions ----> edit code ---->assets ----> section-image-banner.css...>
add the code end of the file
@media only screen and (max-width: 767px) {
.banner__box {
padding: 4rem 1.5rem;
position: absolute;
height: fit-content;
align-items: center;
text-align: center;
width: 100%;
word-wrap: break-word;
z-index: 1;
background: transparent;
bottom: 0;
}
}
result
Buy me a Pizza
If this was helpful, hit the like button and accept the solution.
Thanks
@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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024