Change heading font size in Image with Text Block

Topic summary

A user wants to modify the heading font size within Shopify’s “Image with Text” block but found that editing the image-with-text.liquid file directly didn’t work.

Two solutions were provided:

  1. Theme CSS file modification: Navigate to Shopify Admin → Online Store → Themes → Actions → Edit code. Locate the theme’s CSS file (base.css, style.css, or theme.css) in the Assets folder and add custom CSS targeting the heading element (e.g., .ImageHero__BlockHeading h3 or similar selector) with a font-size property.

  2. Custom CSS section: Add CSS code directly to the Custom CSS field of the specific Image with Text section, targeting the h3 element with the desired font-size value (e.g., font-size: 2rem).

Both approaches involve adding CSS rules rather than modifying the liquid template file.

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

Hi @EmBnotte

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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:
h3.ImageHero__BlockHeading.Heading.u-h6 {
    font-size: 1.5rem;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!