Goal: Show a button on the mobile version of a Shopify image banner and place it just below the model’s feet. The store uses separate desktop and mobile images; desktop button works, mobile needed positioning.
Progress: The mobile button was initially missing; it was added after prompting. Reference images and screenshots were shared to illustrate desired placement and results.
Proposed solutions:
Use a CSS media query (max-width 749px) to target mobile and set the banner content container (banner__content) to position: absolute and anchor it at the bottom for mobile. A media query is a CSS rule that applies only at specified screen sizes.
In theme settings, uncheck the option that forces the button to display inside the mobile image to allow freer placement.
Add custom code near the closing in theme.liquid (exact snippet not visible in the thread) that yields the button below the image per the screenshot.
Edit assets/section-image-banner.css: replace the mobile rule that orders content with absolute positioning and a top offset (e.g., top: 53.5rem) using !important to fix position.
Notes: Absolute positioning and fixed rem values may require adjustment per image height. No confirmation yet from the author; resolution pending.
Summarized with AI on December 25.
AI used: gpt-5.
I created 2 image banners so I can show different images on desktop or mobile, The Button block on image banner is working good in desktop vision but how do i create button in mobile vision and i also want the button is below the the girl feet. Thank you so much
Hello @tabny
Go to online store ---------> themes --------------> actions ------> edit code-------> assets------>section-image-banner.css ------> line number 55
search this code.