JM Crafts Multi Line Product Name in Category

Hi, we bought JM Crafts theme and wondering if the product name in category can be multi-line?

http://www.touchunlimited.com/catego…_multiline.jpg

Thanks!

1 answer

Profile photo of Ziven Staff 82950.00 $tone September 26, 2014
Public

Please go to the file: "app\design\frontend\default\jm_craftstemplate\jo omlart\jmproducts\list.phtml" at line 152 and replace the code

Code:

<?php 
 if (strlen($_product->getName()) > 30) :
	echo strip_tags(substr($_product->getName(), 0, 20)).'...';
 else : 
        echo $_product->getName();
endif;
?>

to

Code:

<?php 
        echo $_product->getName();
?>
#1

Please login or Register to Submit Answer

Written By

Comments