Issue: Hero banner text on a Shopify store would not center on mobile devices. The merchant wanted the “10% off all ethernet switches” text centered on phones.
Proposed fix: Add a mobile-only CSS rule via the theme editor.
Add a media query for small screens (max-width ~480px) targeting the hero text container and set flex alignment to center (justify-content: center) so the text centers on mobile.
Evidence: A before/after screenshot was shared to show the centered result after applying the CSS.
Outcome: The solution worked; the merchant confirmed success and expressed thanks.
Status: Resolved. No further questions or disagreements. Images were provided for illustration but the key change was a simple CSS media query adjustment.
Summarized with AI on December 16.
AI used: gpt-5.
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:
@media only screen and (max-width: 480px){
.container.wrap_text.flex.h_left.v_middle.text_left {
justify-content: center !important;
}
}