paleoglobe Posted June 20, 2024 Share Posted June 20, 2024 Hi all, I use prestashop 8, the number of products per row on the homepage is 4. I would like to change that to 3. Is that possible? Also the titels are cut of at (i think) 25 letters. Is it possible to show a longer title? For this last question i would like to know both for the homepage as for the category pages. Thanks Christophe Slegers Link to comment Share on other sites More sharing options...
ZHSoft Posted June 21, 2024 Share Posted June 21, 2024 1.Find the Featured products module, set the display quantity to 3 and save. 2.As far as I know, there is no limit to 25 characters for the title. Have you tried changing to the default template? Is it your third-party template that causes the limit? If you want to adjust the title, please go to: CONFIGURE->Shop Parameters->Traffic & SEO->SEO & URLs Link to comment Share on other sites More sharing options...
Knowband Plugins Posted June 26, 2024 Share Posted June 26, 2024 Hi, To show larger titles, you need to change the limit of title of the product. In the below file themes/{your_theme}/templates/catalog/_partials/miniatures/product.tpl Please modify the number in the below code- {$product.name|truncate:30:'...'} If you want to increase the limit, then try changing 30 with 40. Regards Link to comment Share on other sites More sharing options...
paleoglobe Posted June 26, 2024 Author Share Posted June 26, 2024 Hi, yes i understand. However, when using the main template, it shows much shorter titels, both on the homepage as category page. On the product pages, the titels are indeed longer, but i would like to see them longer on the home and category page as well Link to comment Share on other sites More sharing options...
paleoglobe Posted September 22, 2024 Author Share Posted September 22, 2024 so is there an easy way to do that? Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 28, 2024 Share Posted September 28, 2024 Hi, To adjust the title length for both the homepage and category pages, you'll need to modify the template files where the product titles are truncated. You'll need to edit the following file: File Path: /themes/{your_theme}/templates/catalog/_partials/miniatures/product.tpl Look for the following line: {$product.name|truncate:25:'...'} Increase the limit by changing 25 to a higher number, for example: {$product.name|truncate:40:'...'} After these changes, make sure to clear the cache in Advanced Parameters > Performance for them to take effect. This should give you longer titles on both the homepage and category pages. Regards. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now