Jump to content

Viewed Product (Right Column): Extending Character Limit


philee

Recommended Posts

Hi,

 

I've been using FireBug to try and figure out how to extend the right column character limit, but can't figure out what's the CCS code to enable this. I tried using truncate but this didn't fix my situation.

 

The current code for the Viewed Product Block is below from FireBug.

 

div#viewed-products_block_left ul li.last_item {
margin: 0;
}
div#viewed-products_block_left h5 {
padding: 5px 0 0;
}
div#viewed-products_block_left h5 a {
font-weight: bold;
color:  #fff;
}
div#viewed-products_block_left p {
color: #fff;
font-size: 12px;
}
div#viewed-products_block_left p img {
margin: 8px 0 0 18px;
}

 

 

Code from the ViewedProduct.TPL

 

<!-- Block Viewed products -->
<div id="viewed-products_block_left" class="block products_block">
<h4>{l s='Viewed products' mod='blockviewed'}</h4>
<div class="block_content">
 <ul class="products clearfix">
  {foreach from=$productsViewedObj item=viewedProduct name=myLoop}
   <li class="clearfix{if $smarty.foreach.myLoop.last} last_item{elseif $smarty.foreach.myLoop.first} first_item{else} item{/if}">
 <a href="{$link->getProductLink($viewedProduct->id, $viewedProduct->link_rewrite, $viewedProduct->category_rewrite)}" title="{l s='More about' mod='blockviewed'} {$viewedProduct->name|escape:html:'UTF-8'}"><img src="{$link->getImageLink($viewedProduct->link_rewrite, $viewedProduct->cover, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$viewedProduct->legend|escape:html:'UTF-8'}" /></a>
 <h5><a href="{$link->getProductLink($viewedProduct->id, $viewedProduct->link_rewrite, $viewedProduct->category_rewrite)}" title="{l s='More about' mod='blockviewed'} {$viewedProduct->name|escape:html:'UTF-8'}">{$viewedProduct->name|truncate:30:'...'|escape:html:'UTF-8'}</a></h5>
 <p>{$viewedProduct->description_short|strip_tags:'UTF-8'|truncate:80}<a href="{$link->getProductLink($viewedProduct->id, $viewedProduct->link_rewrite, $viewedProduct->category_rewrite)}" title="{l s='More about' mod='blockviewed'} {$viewedProduct->name|escape:html:'UTF-8'}"><img src="{$img_dir}bullet.gif" alt=">>" width="10" height="7" /></a></p>

 

 

358xbnc.jpg

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