Move button in image hero desktop

Topic summary

Goal: Move the Image Hero button from centered to the bottom-left on desktop in the Electronics theme, with ability to fine-tune.

Context and checks:

  • Helpers requested the store URL and button visibility to inspect; URL (detepo.com) and screenshots were provided, and the button was later made visible.

Proposed solutions:

  • Add custom CSS in Online Store > Themes > Actions > Edit code > Assets > theme.css to align the button bottom-left by adjusting the hero text container:
    • Set the wrapper to justify-content: flex-start and align-items: flex-end.
  • Alternative (desktop-only) refinement via a media query (min-width: 749px):
    • Align the same wrapper to bottom-left and set max-width to 100%.
    • Tweak .image-hero__text-container padding (remove top padding, add bottom spacing) for positioning.
  • Responsiveness note: The banner’s text appears baked into the image; using the theme’s header/text fields is recommended so text aligns responsively with the button.

Artifacts:

  • Screenshots were central to show current/desired placement and the resulting layout.

Outcome and status:

  • The original poster thanked contributors, indicating the issue was resolved. No open questions remain.
Summarized with AI on December 12. AI used: gpt-5.

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.

1 Like

Hi @Lennart_5 ,

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

Hi,

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

Hi @Lennart_5

PLease, share your store URL. Thanks!

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.

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.

Hi @Lennart_5 ,

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

Hey Lennart,

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

Can you share screenshot

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

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?

Hi PaulMartin, your help would be highly appreciated.

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

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

Hi @Lennart_5 ,

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;
}

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;
}
}

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

1 Like

Hey Lennart,

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

1 Like

Thank you very much!