Jump to content

Change the number of products per row on Homepage


paleoglobe

Recommended Posts

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

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

 

image.thumb.png.fed8d363ade4aae953d9b2760b9f5d2c.png

image.thumb.png.bd22d8b78c36ad55c5410b5444bf5cac.png

image.thumb.png.5f4c0d524073b7a9785ff645c9bf45c9.png

 

Link to comment
Share on other sites

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

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

  • 2 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...