My product has too many titles displayed on the homepage. Can I change the code and set the title to 19 letters?
https://www.whicestyle.com/
Solved! Go to the solution
Please provide website url and if your store is password protected then also provide password
Please add the following code at the bottom of your assets/theme.scss.liquid file.
h3.product-title>a{
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
Hope this works. This is for the collection page.
Thanks!
Find the theme code: product-grid-item.liquid ,Add in (<p class="product-item__title">{{ product.title) | truncate:19 This code 19 number represents the letter length of the name。
I did not find these codes
You mean the above code is not working?
Did you tried to put that. Let me know.
Thanks!
See below, is it not correct ?
User | Count |
---|---|
799 | |
132 | |
92 | |
68 | |
60 |