How do I increase the height of the text so it fits in the text box on an image banner?

Solved

How do I increase the height of the text so it fits in the text box on an image banner?

lukafernada
Excursionist
133 1 50

For example, I want to move the text here upwards so it actually fits inside of the white text box

lukafernada_0-1727368163931.png

My website name is cheffings.net

 

 

Accepted Solution (1)

Sangeetanahar
Explorer
541 36 69

This is an accepted solution.

hello @lukafernada 

Go to online store ----> themes ----> actions ----> edit code ---->assets ---->section-image-banner.css...> add the code end of the file

 @media screen and (max-width: 750px) { 
h2.banner__heading.inline-richtext.h1 {
    font-size: 40px;
}

   
}

Cheffings-09-26-2024_02_15_PM.png

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 -sangeetarahuldhiman@gmail.com - Skype: live:sangeetarahuldhiman -Whatsapp: +917009811712
Checkout Some Free Sections Here

View solution in original post

Replies 3 (3)

Sangeetanahar
Explorer
541 36 69

This is an accepted solution.

hello @lukafernada 

Go to online store ----> themes ----> actions ----> edit code ---->assets ---->section-image-banner.css...> add the code end of the file

 @media screen and (max-width: 750px) { 
h2.banner__heading.inline-richtext.h1 {
    font-size: 40px;
}

   
}

Cheffings-09-26-2024_02_15_PM.png

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 -sangeetarahuldhiman@gmail.com - Skype: live:sangeetarahuldhiman -Whatsapp: +917009811712
Checkout Some Free Sections Here

Tech_Coding
Shopify Partner
333 91 81

Hello @lukafernada 

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) {
    #shopify-section-template--20584607220061__image_banner_4f3LtE .content-container {
       height: 258px !important;
     }
}
</style>

Tech_Coding_0-1727340516082.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.

Viralmint
Shopify Partner
11 2 3

Hello @lukafernada 

Please add below css code to base.css file
@media screen and (max-width: 767px){
.banner .content-container{
max-width: 70%;
max-height: 100%;
padding: 15px 10px;
}
h2.banner__heading.inline-richtext.h1 {
font-size: 30px;
}
}

Viralmint_0-1727346589349.png

 

 

If you find our suggestions helpful, please consider giving them a like or marking them as a solution.

For custom designs and solutions, feel free to contact us. We offer 360-degree services to help scale your e-commerce brand. Don't hesitate to reach out!
https://viralmint.in/viralmint-shopify-community/