Hi! I’m trying to make my product title font smaller and managed to do it on desktop view, but for mobile, no matter what code I try, it still stays super big. Please help! I want to make the mobile view around 18px.
Thank you
A user seeks help reducing product title font size on mobile devices to approximately 18px, noting that desktop adjustments worked but mobile remains unchanged.
Multiple solutions offered:
CSS media query approach (most common): Add custom CSS targeting screens with max-width 768px, setting .product__title font-size to 18px with !important flag
Implementation locations vary by responder:
theme.liquid file above </body> tagbase.bundle.css or base.css at file bottomKey technical details:
@media screen and (max-width: 768px) to target mobile devices!important declaration ensures the style overrides existing rulesStatus: Multiple working solutions provided; awaiting user confirmation on which approach succeeded.
Hi! I’m trying to make my product title font smaller and managed to do it on desktop view, but for mobile, no matter what code I try, it still stays super big. Please help! I want to make the mobile view around 18px.
Thank you
Hey @letsgetwasted
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
Hello @letsgetwasted
@media screen and (max-width: 767px) {
.product__title>* {
font-size: 25px !important;
}
}
I hope you are well. You can follow our instructions below:
Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
Step 3: Copy the code below and paste it there
Here is the code for Step 3:
@media screen and (max-width: 768px){
.product__title > h1 {
font-size: 18px !important;
}
}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.
Hello @letsgetwasted
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
.product__title > * {
font-size: 18px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hello,
@media (max-width: 768px) {
.example-class { font-size: 18px; }
}
Thanks!