Goal: shrink the image banner’s text container height/width in Dawn so it matches a tighter layout.
Context: The banner container on a product/collection page stayed too tall unless subheading text was removed. Screenshots showed the current oversized banner and the desired compact look.
Guidance offered:
Theme Editor approach: In Customize, adjust the Image Banner section (banner height, heading size, description styling; optionally remove buttons) to reduce visual height.
CSS approach: Add custom CSS to limit the text container’s width (e.g., max-width). Initial advice suggested editing code without a store link.
Implementation and issue:
Custom code added in theme.liquid (above ) produced the desired narrower banner. However, it unintentionally left‑aligned the homepage banner because multiple banners share the same DOM (Document Object Model) structure.
Fix:
Updated the code to apply conditionally using Liquid tags ({% if collection %} … {% endif %}), scoping the CSS to the targeted page type and preventing changes on the homepage.
Status: The updated, scoped code resolved the alignment side effect. No further questions; effectively resolved. Images were used to illustrate before/after states.
Hello, I have an image banner on my product page but the container for It is way too long and only reduces in size If I delete some of the text in the subheading. I am using dawn theme
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!