I want to change the title size on my product page on mobile and on desktop

Solved

I want to change the title size on my product page on mobile and on desktop

imazele
Excursionist
27 0 7

Hi I want to reduce the size of my product page's title on mobile and on desktop ! I want to choose the size myself ! Here is my product page's website link : https://www.five-pocket.com/products/pro-club-heavyweight-cotton-tshirt-white

Capture d’écran 2024-02-01 à 20.17.56.png

Accepted Solution (1)

Spac-es
Shopify Partner
384 111 135

This is an accepted solution.

Add this code in your base.css:

@media (max-width: 749px) {
  .product__title h1 {
    font-size: 20px !important;
  }
}
@media (min-width: 750px) {
  .product__title h1 {
    font-size: 30px !important;
  }
}

Edit the pixels of the font-size to increase or decrease the text size. The first font-size applies to mobile devices, and the second font-size applies to PC devices.

 

Result:

 

1.PNG

 

 

Any donation is welcome! https://www.buymeacoffee.com/spacescoffee Thanks in advance!

View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
6827 1630 2009

Hi @imazele 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (min-width: 749px){
.product__title h1 {
    font-size: 30px;
}
}

 

And save. 

Result:

Made4uoRibe_0-1706817854992.png

This size only in the desktop view. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

Spac-es
Shopify Partner
384 111 135

This is an accepted solution.

Add this code in your base.css:

@media (max-width: 749px) {
  .product__title h1 {
    font-size: 20px !important;
  }
}
@media (min-width: 750px) {
  .product__title h1 {
    font-size: 30px !important;
  }
}

Edit the pixels of the font-size to increase or decrease the text size. The first font-size applies to mobile devices, and the second font-size applies to PC devices.

 

Result:

 

1.PNG

 

 

Any donation is welcome! https://www.buymeacoffee.com/spacescoffee Thanks in advance!
NhuPham1
Visitor
1 0 1

🤓it worked! Thank you so much