Make text and button higher in the section-image_banner dawn 10.

LIVINGSIMPLY
Shopify Partner
66 0 12

I am trying to get H1, H2 and the button higher on the page.  I want it to be the same on all my image_banner sections, since we use the same image size for all banners in the section.  Is there a way to do this without messing with the desktop text?

 

Shoplivingsimply.com

 

LIVINGSIMPLY_0-1692131023326.png

 

Living Simply is a company developed to give back, and help others.
Replies 4 (4)

StudioEnchant
Shopify Partner
245 40 38

In your section-image-banner.css file on line 377 you have the following code:

@media screen and (min-width: 750px) {
  .banner__box > * + .banner__text {
    margin-top: 2rem;
  }
}

 

You can change the value of the margin-top parameter and move the text only on mobile version.

Try something like:

@media screen and (min-width: 750px) {
  .banner__box > * + .banner__text {
    margin-top: -10rem;
  }
}
If we helped you please Like this reply and Mark it as Solution! ❤️

Chat with us on WhatsApp


Click here to enjoy 3 months of Shopify for $1/month on select plans.
LIVINGSIMPLY
Shopify Partner
66 0 12

Thank you, but when I put in the code the attached happened?

 

LIVINGSIMPLY_0-1692133047299.png

 

Living Simply is a company developed to give back, and help others.
LIVINGSIMPLY
Shopify Partner
66 0 12

I missed one of the brackets at the end, but nonetheless, this is what it did. I think it made it lower?  

 

LIVINGSIMPLY_1-1692133241894.png

 

Living Simply is a company developed to give back, and help others.

Made4uo-Ribe
Shopify Partner
5977 1439 1776

Hi @LIVINGSIMPLY 

Try this one. It will be on this position on the mobile only. It will not be affected the desktop.

  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 only screen and (max-width: 749px){
.banner__content.banner__content--top-left.page-width.scroll-trigger.animate--slide-in {
    flex-direction: column;
    justify-content: flex-start;
}
}

 

  • And Save.
  • I hope it help. 
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com