All things Shopify and commerce
Hello guys, how can I minimize the title size only for mobile version?
Add similar CSS code to your theme.css or base.css file to reduce the title size only on mobile screens:
@media screen and (max-width: 768px) {
.product-title {
font-size: 18px !important;
}
}
If your title uses a different class, inspect the element in your browser and replace .product-title with the correct class name. Save the changes and test on a mobile device.
You can adjust the product title size on mobile by adding a small piece of CSS to your theme. Go to Online Store > Themes > Edit Code, then open base.css (or theme.css depending on your theme) and add this at the bottom:
@media (max-width: 768px) {
.product-single__title {
font-size: 18px !important; /* Adjust size as needed */
}
}
This will reduce the title size only on mobile devices. If the class .product-single__title doesn’t work, inspect the element using Chrome DevTools or Shopify’s theme editor to find the correct class
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025