Jump to content

Product name truncate specific for mobile


vipier

Recommended Posts

Hello, 

I would like to know if there is a way to change the length of the name of the products on the mobile view. 

in the product-list.tpl there's the line: 

 

{$product.name|truncate:40:'...'|escape:'html':'UTF-8'}

 

Is it possible to add something to make the truncate value different for the mobile version? 

I would like it to be shorter on mobile than on desktop. 

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...