How can I move the button on the image banner to where I want?

Topic summary

Main issue: Move the call-to-action button on the image banner to a specific position in a Shopify theme.

Key updates:

  • It was suggested to use custom CSS to reposition the button. The store URL was shared to enable targeted guidance.
  • A step-by-step fix was provided: go to Online Store → Theme → Edit code, open theme.liquid, and paste a CSS snippet before the tag.

Technical details:

  • The CSS targets .content-box–absolute and sets position: absolute with top: 84% and left: 42%, using !important to override existing theme rules. This places the button at the specified percentage coordinates over the banner image.
  • Absolute positioning positions the element relative to its nearest positioned ancestor, allowing precise placement via percentage offsets.

Outcome:

  • Two screenshots were shared to show the button’s new placement, indicating the method works as intended.

Status:

  • A concrete solution and visuals were provided. No explicit confirmation from the original poster, but the issue appears addressed with actionable steps.
Summarized with AI on January 9. AI used: gpt-5.

Thanks.

@Vizono - custom css can be used

Hello @Vizono
Can you share store URL?

Vizono.co

Hello @Vizono

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.content-box--absolute { position: absolute; top: 84% !important; left: 42% !important; }

Result

1 Like