What is the best way to increase the size of a subtitle underneath a product title? I’ve created and inserted the code in the product main page. I would just like it to be a little larger, if possible. Using the Dawn theme.
Thanks so much.
A Shopify store owner using the Dawn theme wants to increase the font size of a custom subtitle displayed below product titles.
Initial Solution Provided:
base.css or component-product.css.product__subtitle class with custom font-size valuesFollow-up Issue:
The original poster reports that adjusting font-size numbers isn’t producing visible changes.
Troubleshooting Steps Suggested:
.product__info-container .product__subtitle)!important declarations to force style applicationStatus: The discussion remains open with troubleshooting in progress. The issue likely involves CSS specificity conflicts preventing the custom styles from taking effect.
What is the best way to increase the size of a subtitle underneath a product title? I’ve created and inserted the code in the product main page. I would just like it to be a little larger, if possible. Using the Dawn theme.
Thanks so much.
Hello @woodwardcandle
Steps to Increase Subtitle Size in Dawn Theme:
1.Go to Shopify Admin → Online Store → Themes → Click “Edit Code.”
2.Open base.css or component-product.css (whichever is used in your theme).
3.Scroll to the bottom and add this CSS:
.product__subtitle {
font-size: 18px !important; /* Adjust size as needed */
font-weight: 500; /* Optional: Makes it a bit bolder */
color: #333; /* Optional: Adjust color */
margin-top: 5px; /* Optional: Adds spacing from title */
}
If Your Subtitle Has a Different Class
. Use Inspect Element (F12 in Chrome) to check what class your subtitle has.
. Replace .product__subtitle in the CSS with the correct class name.
Alternative: Inline CSS (Quick Fix)
If you added the subtitle directly in the Liquid file, you can style it inline:
Your Subtitle Here
Thank you ![]()
Thank you for your help.
Actually doesn’t look like it’s changing the size when I adjust the font numbers. Any suggestions?
.product__info-container .product__subtitle {
font-size: 22px !important; /* Adjust size as needed */
font-weight: 600; /* Makes it bolder */
color: #333; /* Adjust color */
}
. This targets the subtitle inside the product info container, making it more specific and harder to be overridden.
Check for Other CSS Overriding It
. Right-click the subtitle on the product page.
. Select Inspect (Chrome) or Inspect Element (Firefox).
. Look for any CSS rules applying to the element.
. If another CSS rule is setting font-size, it might be overriding yours.
Try Adding !important in Multiple Properties
If it’s still not working, force the change using:
.product__subtitle {
font-size: 24px !important;
font-weight: 600 !important;
color: #333 !important;
}
Clear Cache and Test
. Hard refresh the page (Ctrl + Shift + R or Cmd + Shift + R on Mac).
. If you have a Shopify app that minifies CSS, clear the cache or disable it temporarily.
Inline CSS Override (Last Resort)
If nothing else works, apply it directly in the Liquid file:
Your Subtitle Here
This ensures no other CSS rule overrides it.
Thank you ![]()