Jump to content

Help needed: Category page issue


Recommended Posts

Category.tpl file, in the theme's folder

 

Look for 

			{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}

And change it to


			{if $category->description}
				<div class="cat_desc">

					<p>{$category->description}</p>
				
				</div>
			{/if}
Link to comment
Share on other sites

 

Category.tpl file, in the theme's folder

 

Look for 

			{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}

And change it to


			{if $category->description}
				<div class="cat_desc">

					<p>{$category->description}</p>
				
				</div>
			{/if}

Thanks Nemo1! I also did the same for manufacturer's tpl files. :)

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