We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Image Banner - Wrap Text

Solved

Image Banner - Wrap Text

dkcrooby
Excursionist
13 1 2

Hi,

 

Could someone please help me wrap the text in the banner image?  

 

I would like to have 3 lines of text instead of 2 but I don't know where to change the code so I can add breaks. 

 

Thank you!

 

dkcrooby_1-1734015753716.png

 

 

Accepted Solution (1)
suyash1
Shopify Partner
11112 1367 1751

This is an accepted solution.

@dkcrooby please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css

 

@media screen and (min-width: 750px) {
    .banner__box {
        max-width: 40rem !important;
        min-width: 40rem !important;
    }
}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com

View solution in original post

Replies 6 (6)

suyash1
Shopify Partner
11112 1367 1751

@dkcrooby  can you share this page link?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
dkcrooby
Excursionist
13 1 2
suyash1
Shopify Partner
11112 1367 1751

This is an accepted solution.

@dkcrooby please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css

 

@media screen and (min-width: 750px) {
    .banner__box {
        max-width: 40rem !important;
        min-width: 40rem !important;
    }
}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
dkcrooby
Excursionist
13 1 2

That's perfect - thank you so much!

Made4uo-Ribe
Shopify Partner
10211 2427 3079

Hi @dkcrooby 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media screen and (min-width: 1400px) {
    .banner__content .banner__box {
        max-width: 40rem;
    }
}
@media screen and (min-width: 750px) {
    .banner__content .banner__box {
        width: auto;
        max-width: 40rem;
        min-width: 10rem;
    }
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1734028247562.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
dkcrooby
Excursionist
13 1 2

Thanks very much!