Re: Shorten the title of products on the collections and homepage

Solved

Shorten the title of products on the collections and homepage

WinnieLin
New Member
4 0 0

Hey guys, how can I shorten my product titles to 2 lines so that my store can have some uniformity? Like if the product title is longer than 2 lines it just shows ellipses at the end

Thank you!

Accepted Solution (1)
Moeed
Shopify Partner
4370 1127 1383

This is an accepted solution.

Hey @WinnieLin 

 

You can reduce the font size from 12 to anything however you like to make it appear in 2 lines.

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
4370 1127 1383

Hey @WinnieLin 

 

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

 

Best Regards,
Moeed

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
WinnieLin
New Member
4 0 0

my store URL is https://popgoo.com/

Moeed
Shopify Partner
4370 1127 1383

Hey @WinnieLin 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
h3.t4s-product-title {
    font-size: 12px !important;
}
</style>

RESULT:

Moeed_0-1698731290616.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
WinnieLin
New Member
4 0 0

Thank you!Can it be set to display only 2 lines and use ellipsis for the overflow part?

Moeed
Shopify Partner
4370 1127 1383

This is an accepted solution.

Hey @WinnieLin 

 

You can reduce the font size from 12 to anything however you like to make it appear in 2 lines.

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️