How can I add a solid white box behind text on mobile?

Solved

How can I add a solid white box behind text on mobile?

faytheworks
Visitor
2 0 1

How can I add a solid white box behind text on mobile like it displays on desktop in Studio theme? Working on new site: store.reneeallenmccoy.com

Accepted Solution (1)

Moeed
Shopify Partner
5323 1437 1723

This is an accepted solution.

Hey @faytheworks 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.slideshow__text.banner__box {
    background: white !important;
    margin: 50px;
}
}
</style>

RESULT:

Moeed_0-1726905088335.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
5323 1437 1723

This is an accepted solution.

Hey @faytheworks 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.slideshow__text.banner__box {
    background: white !important;
    margin: 50px;
}
}
</style>

RESULT:

Moeed_0-1726905088335.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


faytheworks
Visitor
2 0 1

Thank you! It worked perfectly❤️

Moeed
Shopify Partner
5323 1437 1723

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Tech_Coding
Shopify Partner
287 72 64

Hello @faytheworks 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px){
   .banner:not(.banner--mobile-bottom):not(.email-signup-banner) .banner__box {
       background: #fff !important;

       max-width: 27.5rem !important;
   }
}
</style>

Tech_Coding_0-1726905403810.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.