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

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

lukafernada
Pathfinder
157 2 57

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

 

 

Replies 2 (2)

Tech_Coding
Shopify Partner
514 132 131

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
38 5 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 reply helpful, please hit Like and Mark it 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.



Thank You,
ViralMint Support Team
Get a Free Quote | Email | Shopify Partner | Shopify Development Agency| Call Us 91 98903 26596
Location: Pune, Maharashtra, India 411045