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 and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
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?
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.
For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase
Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024