Shopify themes, liquid, logos, and UX
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
How do I decrease of the text box here:
My URL is cheffings.net
Hi @lukafernada!
You can decrease the size of the box by going to Admin > Edit Code > section-image-banner.css: (line 335)
Adding padding: 4rem 3.5rem; under `.banner:not...` class allows you to decrease the size from 4rem of padding and make the box's height smaller for mobile only:
@media screen and (max-width: 749px) {
.banner--mobile-bottom:not(.banner--stacked) .banner__content {
order: 2;
}
.banner:not(.banner--mobile-bottom) .field__input,
.banner--mobile-bottom:not(.banner--stacked) .banner__box.color-background-1 {
background: transparent;
padding: 4rem 3.5rem;
}
}
As an example, changing the padding to 2rem 3.5rem will give you:
Hope this helps!
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </body>
<style>
@media screen and (max-width: 767px) {
#shopify-section-template--20694435627357__image_banner_ELBDKx #Banner-template--20694435627357__image_banner_ELBDKx h2.banner__heading.inline-richtext {
font-size: 29px !important;
font-weight: bold!important;
}
}
</style>
Result:
If it helps you, please like and mark it as the solution.
Best Regards 😊
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