This topic has 13 replies, 3 voices, and was last updated 10 years, 1 months ago ago by Robert Hall
Hello!
As you can see here, my client isn’t satisfied with how some titles are shown, making the preview of some products in the categories page larger than other, because of the length of the title.
So please provide me with some custom .css code to do the following:
1. Not use capital letters for those titles (in the product categories pages);
2. Have a fixed space / height for the title preview, making all the product preview to have a similar size in the categories pages.
Thank you in advance π
Hello,
Please provide us with the link to your site.
Thank you.
Regards,
Eva Kemp.
The website isn’t public for now, you have admin credentials below, in private content.
Please look at this page – http://mobilum.uk/product-category/furniture/
Also, please take into account I already have a .css custom change, for the height of the picture previews in the categories page to be the same:
img.hide-image {
height: 230px;
}
Right now I have 4 products per row, as the client changed his mind.
Please give me custom .css codes to make everything have the same size, the whole preview area, including the title. Probably not having capital letters there will help π
Thanks again π
Hello,
Please, add this code into custom.css file.
.products-grid .product .product-name {
text-transform: none;
}
Regards,
Robert Hall.
Yep, this helps with the capital letter, and the title is now ”smaller” also in height. However, it’s still not enough, although it clearly helps a litlle.
Please take a look here… http://mobilum.uk/product-category/furniture/
Can I somehow force a height for the title (let’s say two rows for all titles), so everythime it stays the same (the preview height to be always the same).
I rely on your judgement, maybe you have a better solution π Thank you again π
The height of the block depends on the product name. You can try to set a fixed height. Maybe it will help you.
Add this code into custom.css file.
.products-grid .product .product-name {
height:45px;
}
Regards,
Robert Hall.
Yep, that was what I needed.
Thank you very much!!! π
Ticket closed π
Hello,
Youβre welcome!
If you have any questions please feel free to contact us.
Regards,
Robert Hall.
Hello!
This ticket is not exactly fixed. I mean that always only two lines of the title are shown, however when a title is longer than two lines, the third line is still shown, overwriting the line below. What code must I add to force ONLY two line of the title to be shown?
See here exactly the problem (the last product on the right).
Please note I have the following custom .css changes for the category pages:
img.hide-image {
height: 192px;
}
.products-grid .product .product-name {
text-transform: none;
}
.products-grid .product .product-name {
height:45px;
}
The last one is from this thread, mentioned two posts above.
Thank you in advance π
If you want admin credentials, they’re below. You can also use the ones from a post below, this ones are for a demo for the same client (mirrored content).
And this is the link in the screenshot above… http://www.protopopescu.ro/demo-adi/site/product-category/furniture/
Both the demo and also the main site aren’t live.
Thanks again π
Hello sorin.manica,
Please add this code into custom.css file.
.products-grid .product .product-name{
overflow:hidden;
}
Here is a video tutorial how to create custom.css: https://www.youtube.com/watch?v=Qok2zRedRMY&feature=youtu.be.
Regards,
Robert Hall.
Great, it works! Thank you very much! π
Youβre welcome!
Regards,
Robert Hall.
The issue related to '‘Fixed title space in categories preview / not using capital letters for titles’' has been successfully resolved, and the topic is now closed for further responses