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.
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.
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?
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.
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: