How can I alter the font size and alignment on a specific collection banner?

Topic summary

A user seeks to modify the font size and left-align text specifically on their collection banner page without affecting other pages on their Shopify store.

Proposed Solutions:

Two community members offered CSS-based approaches:

  • Solution 1: Add custom CSS targeting the h1.h1 element with font-size: 4rem !important through the Theme Customizer’s Custom CSS section.

  • Solution 2: Insert CSS code directly into the theme.liquid file before the </body> tag. This approach targets .prose:first-child and .relative .container--xs elements with specific font-size, text-align, and margin properties using !important flags.

Status: The discussion remains open with no confirmation from the original poster about which solution was implemented or whether the issue was resolved. Both solutions rely on CSS overrides but differ in implementation method and targeted selectors.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hi,

i’m looking to change the font size & align left on my collection banner only no other pages. My site is https://b32b39-5.myshopify.com/collections/all

Hey @MIKESTORK ,

Please add this into the Custom CSS in the Theme Customizer → Settings

h1.h1 {
   font-size: 4rem !important;
}
1 Like

Hello @MIKESTORK

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.relative .container--xs { max-width: 100% !important; margin: 0 0 !important; } .prose :first-child{ text-align: left !important; margin-left: 47px !important; font-size: 20px !important; }