Jump to content

[SOLVED] Please help double texting!


Recommended Posts

Hi, Vekia

I really don't understand how to change it even though I went through that topic. I didnt get what did the moderator mean by "and add the {* ....code... *}  (2x)", what should I add and where?

Sorry about that

Link to comment
Share on other sites

in your category.tpl file (from your theme directory)

		{if $category->description}
				<div class="cat_desc">
{*
				{if strlen($category->description) > 120}
					<p id="category_description_short">{$category->description|truncate:120}</p>
					<p id="category_description_full" style="display:none">{$category->description}</p>
					<a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>
				{else}
*}
					<p>{$category->description}</p>
{*
				{/if}   
*}
				</div>
			{/if}

ad {* and *} exactly as you can see above

Link to comment
Share on other sites

×
×
  • Create New...