16 Oct 2011, 9:03 AM
New Zenner
- Join Date:
- Jan 2010
- Posts:
- 79
- Plugin Contributions:
- 0
Post #1 by sungmo
I do not want to change database...
I just want to reduce length of product name on featured product in main page...
so I added bottom codes in fetured_product.php
<div class="indent">' . ( strlen($products_name) < 160 ? $products_name : substr($products_name, 0, 157) . "...") . '
it works.. however if I click F5.. it does not work...
does someone can help me?