Hi team, hope you have a great day.
Can someone help me with below enquiries?
-
Make my page title smaller.
-
Product name smaller
Appreciate the help!
Question 1
Question 2
Website below
A user seeks help reducing font sizes for page titles and product names on their Shopify store.
Initial Request:
Solutions Provided:
Two community members offered CSS-based fixes:
First solution (Moeed): Add custom CSS code to the theme.liquid file, placed above the </body> tag. This successfully addressed the initial request.
Follow-up request: User asked to extend the solution to collection pages and blog page titles.
Extended solution (Moeed): Additional CSS targeting .title--primary and .collection-hero__title classes, to be added within the existing code block. Font sizes set to 25px and 3rem respectively.
Alternative approach (webwondersco): Suggested adding CSS directly to the base.css file, targeting .product__title h1 and .main-page-title h1 with customizable rem values.
Status: Multiple working solutions provided with code snippets. User confirmed the initial fix worked and received additional code for broader implementation.
Hi team, hope you have a great day.
Can someone help me with below enquiries?
Make my page title smaller.
Product name smaller
Appreciate the help!
Question 1
Question 2
Website below
Hey @jasonthegrammy
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
@jasonthegrammy ,add the below line of CSS code at the end of your base.css file.
.product__title h1{
font-size:3rem;
}
h1.main-page-title{
font-size:3.5rem;
}
you can update the value of rem as per your taste.
Dear Moeed, thank you for the help! it does help ! but any ideas if I could do the same for products pages, blog page title too?
for example below :
Photos 1
Photo 2
Hey @jasonthegrammy
Keep the previous code and add this new code above in the previous code you added.
.title--primary {
font-size: 25px !important;
}
.collection-hero__title {
font-size: 25px !important;
}
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed