Shopify themes, liquid, logos, and UX
Hi guys,
How do you reduce the product title font size please? I’m using the prestige theme.
Thanks in advance!
Hi @Jednay ,
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>
.product-title {
font-family: sans-serif !important;
}
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
LuffyOnePiece
Hi,
This didn’t work, does it not need to specify the font size in the code?
Many Thanks
Hi @Jednay ,
Add below css if you want to change font size for the product page title.
h1.product-title.h3 {
font-size: 20px;
}
If it is for product grid, add below css.
a.product-title.h6 {
font-size: 14px !important;
}
Thanks.
Hi Sandeep,
Hmm? Still hasn't worked.
Hi Sandeep,
Is that instead of the original code or as well as please? As it doesn’t seem to be working, unless I’ve pasted it in the wrong place?
Thanks a lot.
Hi @Jednay ,
Remove all other code.
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>
Add below css if you want to change font size for the product page title.
<style>
h1.product-title.h3 {
font-size: 20px;
}
</style>
If it is for product grid, add below css.
<style>
a.product-title.h6 {
font-size: 14px !important;
}
</style>
Thanks.
Thank you, but still nothing.
Hi @Jednay ,
Remove all code added and add below code.
<style>
h1.product-title.h3 {
font-size: 20px;
}
a.product-title.h6 {
font-size: 14px !important;
}
</style>
Thanks
Still nothing Sandeep, and now I’m seeing this error..
Hello @Jednay
Can you share store URL?
Hi there,
Jednay.com
Thank you!
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>
@media screen and(min-width: 641px){
.features--heading-small .u-h2{
font-size: 16px !important;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hi,
Still nothing, I’m now seeing this error, so i may have messed up somewhere ?
refresh your theme
And see on line number 236 that you did not add it(>)
Hi,
I don’t understand?
This is how it currently looks, do i need to add or remove anything from this..
On line number 236 in place of this </style add this </style>
It will not show any error.
Thanks, still nothing.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024