Jump to content

category descriptions


Recommended Posts

ok when you write a description for a category and its i guess to long it will shorten it on the site then it will have blue more button with an arrow below it to view more...is there a way to show it all without the customer actually having to click the button to read it.? its about a paragraph length but will only show about one and a half o the starting sentence.

 

Thanks

Edited by scenteddelights (see edit history)
Link to comment
Share on other sites

okay, so, in the file:

 

themes/default/category.tpl you've got:

 

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

 

change the code above to:

 

 <p id="category_description_full" >{$category->description}</p>

 

yes, it's okay, just one line ;)

 

btw. i also moved your topic to the correct forum section ;)

  • Like 1
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...