A user seeks to reduce the vertical spacing between a collection banner and the product grid on both desktop and mobile views. An image illustrates the gap they want to eliminate.
Solutions Provided:
Two community members offered CSS-based fixes:
Solution 1: Apply negative top margin (margin-top: -5rem) to form#FacetSortForm for screens 768px and wider. Insert this CSS in theme.liquid within <style> tags before the <body> tag.
Solution 2: Add custom CSS targeting .collection-hero with margin-bottom: 0 !important and padding-bottom: 0 !important. Place this code in theme.liquid just above the closing </body> tag.
Both solutions include step-by-step instructions for editing the theme files and provide before/after screenshots demonstrating the reduced spacing.
Status: The issue remains unresolved as the original poster has not confirmed which solution worked.
Summarized with AI on October 30.
AI used: claude-sonnet-4-5-20250929.
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the tag before the body ----->
if this code work please do not forget to like and mark it solution