Post by fred123 » Tue Jan 21, 2014 6:40 pm

I have long product titles and want them on 2 or more lines depending on the length but for some reason they are displaying on 1 long line so looks odd.

I have tried changing the div name to :
<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo html_entity_decode(str_replace(", ", ",<br />", $product['name']), ENT_QUOTES, 'UTF-8'); ?></a></div>

as per another thread but this doesn't work.

Please advise, thanks :)

Active Member

Posts

Joined
Fri Aug 26, 2011 3:13 pm

Post by Xyph3r » Tue Jan 21, 2014 9:53 pm

Please give us the webpage with the above mentioned problem. There shouldn't be a problem with the code. It's more of a css problem. Check the length of the ".box-product .name" in your stylesheet or ".box-product > div"

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by fred123 » Fri Jan 24, 2014 8:14 pm

I have sorted it thanks, the column widths were auto rather than a certain size.

Thanks

Active Member

Posts

Joined
Fri Aug 26, 2011 3:13 pm
Who is online

Users browsing this forum: No registered users and 16 guests