Page Pass: chawff
I want the title font size to decrease only in mobile view, only in the product landing page.
For example make this title smaller and to be implemented for all products:
Thanks in advance.
A Shopify store owner wants to reduce the product title font size specifically for mobile view on product landing pages, with the change applied across all products.
Two CSS solutions were provided:
PageFly-Richard’s approach:
base.css file.product__title h1 font-size to 20px with !importantirene-vintage’s method:
{{ product.title }})Both solutions use CSS media queries to apply mobile-specific styling. The store owner provided a password (“chawff”) for page access and included a screenshot showing the current title size.
Page Pass: chawff
I want the title font size to decrease only in mobile view, only in the product landing page.
For example make this title smaller and to be implemented for all products:
Thanks in advance.
Hi @Andy106
This is Richard from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file base.css
Step 3: Paste the below code at bottom of the file → Save
@media screen and (max-width: 767px){
.product__title h1 {
font-size: 20px !important;
}}
Hope that my solution works for you.
Best regards,
Richard | PageFly
Hello @Andy106 ,
Here’s a general guide you can try:
# {{ product.title }}
In this example, we’re using a max-width of 767 pixels to target mobile devices. You can adjust this value to target a different screen size if needed
Hope this can help. Let us know if you need any further support.
Ali Reviews team