Re: Move text and button of banner image on different positions for desktop and mobile

Solved

Move text and button of banner image on different positions for desktop and mobile

sirensiren
Excursionist
41 0 8

Hello everyone!

 

So, I found a code online and I managed to have 2 different banner pictures for both desktop and mobile.

Now I want to move the banner content (text & button) to a different position for the desktop version (all the way to the left) and on another position for the mobile version (all the way to the top). Could you please help me with that?

 

I can provide store URL and password through PM upon request. 

 

Thanks!

 

Madeleine

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
7867 1902 2332

This is an accepted solution.

Thank you for the info.

For  the desktop version (all the way to the left), is this enough or more?

Made4uoRibe_0-1696944330943.png

If this enought try this code. 

  • 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:

 

.banner__content.banner__content--middle-left.page-width, .banner__box.content-container.content-container--full-width-mobile.color-background-1.gradient {
    padding-left: 0px;
}

 

  • And Save. 

For the mobile version (all the way to the top).

  • Same Instruction.

 

@media only screen and (max-width:749px){
.banner__box.content-container.content-container--full-width-mobile.color-background-1.gradient {
    padding-top: 10px;
    position:absolute;
    top: 0px;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_1-1696945436787.png

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 9 (9)

Made4uo-Ribe
Shopify Partner
7867 1902 2332

Hi @sirensiren 

Would you mind to share your Store URL website? with password if its protected. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
sirensiren
Excursionist
41 0 8

Yes, I sent you a PM. Thank you 🙂

Made4uo-Ribe
Shopify Partner
7867 1902 2332

This is an accepted solution.

Thank you for the info.

For  the desktop version (all the way to the left), is this enough or more?

Made4uoRibe_0-1696944330943.png

If this enought try this code. 

  • 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:

 

.banner__content.banner__content--middle-left.page-width, .banner__box.content-container.content-container--full-width-mobile.color-background-1.gradient {
    padding-left: 0px;
}

 

  • And Save. 

For the mobile version (all the way to the top).

  • Same Instruction.

 

@media only screen and (max-width:749px){
.banner__box.content-container.content-container--full-width-mobile.color-background-1.gradient {
    padding-top: 10px;
    position:absolute;
    top: 0px;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_1-1696945436787.png

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
sirensiren
Excursionist
41 0 8

My dear friend, it worked for mobile but not for desktop. Any ideas why?

Made4uo-Ribe
Shopify Partner
7867 1902 2332

Please refresh it, on my side it move to the left. But I think you want far left? 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
sirensiren
Excursionist
41 0 8

Hmm, maybe it did move but I didn't notice it! Can we move it more to the left, please?

sirensiren
Excursionist
41 0 8

You know what, it's ok! I think this position is enough and it doesn't need further modification. Thank you so much for taking the time to help me! I appreciate it very much! 🙂 ❤️

Made4uo-Ribe
Shopify Partner
7867 1902 2332

Welcome.😊

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Made4uo-Ribe
Shopify Partner
7867 1902 2332

Like this?

Made4uoRibe_0-1696946681871.png

if it is then try this code, same instruction. 

 

.banner__content.banner__content--middle-left.page-width {
    max-width: 100%;
    padding-left: 5rem;
}

 

And Save. if you like to adjust from the left just reduce the padidng. 

Made4uoRibe_1-1696946762506.pngMade4uoRibe_2-1696946775298.png

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.