Make the titles more similar

Solved

Make the titles more similar

Baaaldo
Visitor
1 0 1

Hello, I would like to make my product titles on the homepage and collections page more similar to this website:

https://www.hlfprodukte.com/

 

if you look at their titles, if they are too long, they disappear, while mine are fully displayed.

My store link: https://bsyzza-cu.myshopify.com/

 

Accepted Solution (1)

devcoders
Shopify Partner
1624 190 496

This is an accepted solution.

Hello @Baaaldo 

 

Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.

 

.product-block__title {

    white-space: nowrap;

    text-overflow: ellipsis;

    overflow: hidden;

}

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
10211 2427 3079

Hi @Baaaldo 

Try this one.

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

.product-block__title {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1737653256594.png

     

 

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

devcoders
Shopify Partner
1624 190 496

This is an accepted solution.

Hello @Baaaldo 

 

Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.

 

.product-block__title {

    white-space: nowrap;

    text-overflow: ellipsis;

    overflow: hidden;

}

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

Made4uo-Ribe
Shopify Partner
10211 2427 3079

Looks like the solution is the same. And I comment first? hmmm..🤔

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.