Re: text on image banner on homepage doesn't stay on image when seen on mobile

text on image banner on homepage doesn't stay on image when seen on mobile

blublu
Excursionist
19 1 12

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.

https://blublu.ca/

password is saghoo


Tahnk you!!

Replies 5 (5)

Sangeetanahar
Explorer
541 36 69

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

 

blublu-POPPING-BOBA (1).png

 

Buy me a Pizza


If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:sangeetarahuldhiman -Whatsapp: +917009811712
Checkout Some Free Sections Here

BSSCommerce-B2B
Shopify Partner
1718 512 575

@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

BSSCommerceB2B_0-1725376460452.png

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

blublu
Excursionist
19 1 12

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

BSSCommerce-B2B
Shopify Partner
1718 512 575

@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:

BSSCommerceB2B_0-1725672034284.png

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

Van_Nguyen_GSG
Shopify Partner
161 23 42

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. 

 

Screenshot 2024-09-04 at 13.47.32.png

Helping Shopify merchants build stores that convert.
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- If you still need help, feel free to reach out to me at: [email protected]
Cheers!