How to Move Shop now button to the bottom of my image on mobile

Topic summary

A Shopify store owner wants to reposition the “Shop Now” button on their hero image for mobile devices. Currently, the button overlaps content; they want it centered below the text at the bottom of the image to improve visibility and user experience.

Three solutions were proposed:

  1. CSS media query approach: Add code to base.css adjusting the button’s top position using !important for screens under 768px width.

  2. Flexbox alignment method: Modify section-image-banner.css by changing .banner__content from align-items: center to align-items: end, and reduce .banner__box padding from 4rem 1.5rem to 1rem 1.5rem.

  3. Custom code injection: Insert markup code into password.liquid file above the </body> tag.

All three respondents provided screenshots demonstrating their proposed results. The discussion remains open with no confirmed resolution from the original poster regarding which solution worked best.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hello,

I am struggling to move the shop now button to the bottom of my hero photo on mobile. I want it to sit underneath the text in the centre so it doesn’t block any of the content and so users don’t need to scroll down to click on a product. I have circled in the screen shot below where I would like it to sit.

My website is https://brewbarncoffee.com/

Thank you for your help.

1 Like

Hello @N4th4nsgt
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.

@media screen and (max-width: 768px) {
.button.button--primary {
  top: 11rem !important;
}
}

result

If this was helpful, hit the like button and accept the solution.
Thanks

find section-image-banner.css,search ‘.banner__content’, change ‘align-items: center’ to ‘align-items: end’.

search ‘.banner__box’, change ‘padding: 4rem 1.5rem;’ to ‘padding: 1rem 1.5rem;’

Hey @N4th4nsgt

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find password.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT

If I managed to solve your problem then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed