Move image banner button on mobile dawn theme

Hey,

Trying to move the call to action button slightly up on the image banner.

I want to move the button slightly up. Any help would be appreciated.

Thanks

1 Like

Hi, @StarMintz

please send URl of this website

Hi @StarMintz

Would you mind to share your Store URL website? with password if its unpublish. Thanks! You can Pm me also if you dont like to public.

https://fjrii0vu3kg14q48-71289930044.shopifypreview.com

its the mobile view that needs to change

1 Like

write is code

@media only screen and (max-width: 425px) and (min-width: 320px) {
.banner__box.content-container.content-container–full-width-mobile.color-inverse.gradient {
margin-bottom: 40vw;
}

}

Hi @StarMintz

This is Henry from PageFly - Landing Page Builder App

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file → Save

@media (max-width: 767px){

.banner__box.content-container.content-container–full-width-mobile.color-inverse.gradient {

margin-bottom: 40vw !important;

}}

Hope that my solution works for you.

Best regards,

Henry | PageFly

Thanks for the info, check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • 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__box {
    margin-bottom: 25vw;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Edit this code in there

@media only screen and (max-width: 425px) and (min-width: 320px) {
.banner__box.content-container.content-container–full-width-mobile.color-inverse.gradient {
margin-bottom: 40vw;
}

}

hello,

thanks for your help! Is there a margin i could add so i can move the button left and right?

Also how would i adjust the height and width of the button?

Thanks.

1 Like

The margin/padding help to push up. There is align center/left/right to move the button. I used margin because the button still covering products a bit.

For the width and height I need to check your store again, would you mind to share the preview? Thanks!

https://wyr0ybbqgumiuvco-71289930044.shopifypreview.com

Thanks.

I would like the button at the bottom ( centre ) on mob view and over the existing button on desktop.

1 Like

Check this one for the mobile.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • 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__box.content-container.content-container--full-width-mobile.color-inverse.gradient {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items:end;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

hey,

this is great. For the mob view, how do i move the button up a small amount?

Also for the desktop view, yes i will remove the button, i just wanted to show you the position where i wanted it. As long as it aligns with the trust pilot sign.