Move button in image hero desktop

Solved

Move button in image hero desktop

Lennart_
Tourist
8 0 1

Hi there, 

 

How can I move the button in the image hero? It is now centered in the middle (see screenshot) and I want it to be on the bottom left. Due to image and text, it would be best if I could fine-tune myself. I found some custom CSS on this forum, but they don't do anything. My theme is Electronics.

 

I hope somebody can help me.

 

 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10188 2418 3062

This is an accepted solution.

Thanks! Just to clarify, the text on the banner is attached to the image, right? That’s why it’s not aligned with the button and isn’t responsive along with it. I suggest using the default header/text input for the banner so it will be responsive. 

Here is the code to align on the bottom left, but its only on 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 (min-width: 749px){
.image-hero__text-container-wrapper {
    max-width: 100% !important;
    justify-content: flex-start;
    align-items: self-end;   
}

.image-hero__text-container {
     padding-top: 0 !important;
     padding-bottom: 20px;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1733515842261.png

     

 

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 17 (17)

namphan
Shopify Partner
2690 349 398

Hi @Lennart_,

Please send the website link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
namphan
Shopify Partner
2690 349 398

Hi @Lennart_,

Can you add it as a duplicate and send me a preview link? I will check it.

Because it is difficult to check if it is not visible

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

steve_michael2
Navigator
445 38 61

Hi,

kindly provide your store URL please and if it is password protected, please share the password as well. Thanks

Lennart_
Tourist
8 0 1

Hi! Thank you. Here's the URL: https://www.detepo.com/

I don't have a button in my banner at the moment, since it is automatically placed in the center of the picture, and I can't move it.

Looking forward to hearing from you again.

 

 

steve_michael2
Navigator
445 38 61

Can you share screenshot

Made4uo-Ribe
Shopify Partner
10188 2418 3062

Hi @Lennart_ 

PLease, share your store URL. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Lennart_
Tourist
8 0 1

Hi! Thank you. Here's the URL: https://www.detepo.com/

I don't have a button in my banner at the moment, since it is automatically placed in the center of the picture, and I can't move it.

Looking forward to hearing from you again.

Made4uo-Ribe
Shopify Partner
10188 2418 3062

Thanks for the info! Can you please add the buttons so I can see where to move them? Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Lennart_
Tourist
8 0 1

Hi again! Please see the screenshot below. The button is in the middle below and I would like it to be below the text, so on the left bottom. Would that be possible?Scherm­afbeelding 2024-12-04 om 16.30.42.png

Made4uo-Ribe
Shopify Partner
10188 2418 3062

Yes, I understand, but currently, I can’t see your button visible on the URL you’ve provided.

Made4uoRibe_0-1733400968193.png

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Lennart_
Tourist
8 0 1

If you now go to the URL you will see the button. Looking forward to hearing from you again. 

namphan
Shopify Partner
2690 349 398

Hi @Lennart_,

Please go to Actions > Edit code > Assets > theme.css file and paste this at the bottom of the file:

 

.image-hero__text-container-wrapper {
    justify-content: flex-start;
    align-items: flex-end;
}

 

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Made4uo-Ribe
Shopify Partner
10188 2418 3062

This is an accepted solution.

Thanks! Just to clarify, the text on the banner is attached to the image, right? That’s why it’s not aligned with the button and isn’t responsive along with it. I suggest using the default header/text input for the banner so it will be responsive. 

Here is the code to align on the bottom left, but its only on 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 (min-width: 749px){
.image-hero__text-container-wrapper {
    max-width: 100% !important;
    justify-content: flex-start;
    align-items: self-end;   
}

.image-hero__text-container {
     padding-top: 0 !important;
     padding-bottom: 20px;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1733515842261.png

     

 

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Lennart_
Tourist
8 0 1

Thank you very much!

PaulMartin
Shopify Partner
624 60 148

Hey Lennart,

 

Has this been resolved? If not, I'd be happy to help you out. Let me know.

Lennart_
Tourist
8 0 1

Hi PaulMartin, your help would be highly appreciated.

 

 

PaulMartin
Shopify Partner
624 60 148

Hey Lennart,

 

It seems like Namphan and Made4uo has taken the initiative. Thank you to you both🙂