A user seeks to limit banner image height to 150px specifically on collection pages (e.g., /collections/accessories) without affecting site-wide banners. Their initial CSS attempt using @media screen and .banner modified all banner heights globally rather than targeting only collection pages.
Three solutions were provided:
GemPages Support: Add CSS targeting a specific banner template ID (#Banner--template__...) to base.css, setting max-height: 150px and object-fit: contain
PageFly-Victor: Insert CSS wrapped in <style> tags into theme.liquid above </head>, applying rules to all collection pages only
Litos: Modify main-collection-product-grid.liquid directly with targeted code (screenshot provided)
Resolution: The user confirmed the issue is now resolved and working correctly.
Summarized with AI on November 23.
AI used: claude-sonnet-4-5-20250929.
I’m trying to set a max-height for image banners for collection pages only. For example on the page: www.satanswookshop.com/collections/accessories …the “Accessories” image is much larger than the header logo. I would like to have it set a max-height of like 150px to keep it from scaling up so large. I found some code that works when editing the section-image-banner.css file