All things Shopify and commerce
Is it possible to change the title font size in the Title of Product Page on Dawn´s theme? I´ve tried a couple of things but neither seem to work.
Added this code at the end of base.css
.product_title h1 {
font-size: 30x
}
Added this code at the end of assets/section-main-product.css
}
h1.product__title {
font-size: 20px;
}
Can´t seem to make any chage.
It would also be nice to know if I can change font sizes in different parts of the web, such as product description.
Solved! Go to the solution
This is an accepted solution.
I just spent all day yesterday figuring this out! Finally got this to work. On main-product.liquid, put this right before the {%- endstyle -%} part.
.product__title > * {
margin: 0;
font-size: 2.2rem;!important
}
You can adjust the 2.2 to whatever size you want it to be after you see it. I found that to be a much better size than the giant one it comes with!
Hi @alessa86
You can try to add this code to your base.css file
@media (min-width: 990px) {
.product_title h1 {
font-size: 30px !important;
}
}
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Did not work for me, thank you for your response!
Hi @alessa86,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
.product_title h1 {
font-size: 30px !important;
}
h1.product__title {
font-size: 20px !important;
}
</style>
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This didn´t work for me, thank you for your support!
This is an accepted solution.
I just spent all day yesterday figuring this out! Finally got this to work. On main-product.liquid, put this right before the {%- endstyle -%} part.
.product__title > * {
margin: 0;
font-size: 2.2rem;!important
}
You can adjust the 2.2 to whatever size you want it to be after you see it. I found that to be a much better size than the giant one it comes with!
thank you this was really helpful!
Do you know how to change the font of the description?
Great, thanks Laurie. Like many others I suspect, I tried the other posted solutions with no success.
I don't know why they just don't make this editable via the UI, the title size out of the box is much too large.
I know, it's crazy to have the default size be so huge and no way to easily change it!
Thank you so much ❤️
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 </body> on theme.liquid
<style>
.product__title h1 {
font-size: 30px !important;
}
- Here is the solution for you @alessa86
- Find the base.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
.product_title h1 {
font-size: 30x !important;
}
h1.product__title {
font-size: 20px !important;
}
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025