Jim McGill Posted January 27, 2014 Share Posted January 27, 2014 Hello Experts, Ma I know how to allow the entire paragraph to be seen instead of getting the user to click on the more link as below? I want to delete the unnecessary click. Link to comment Share on other sites More sharing options...
NemoPS Posted January 27, 2014 Share Posted January 27, 2014 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 More sharing options...
Jim McGill Posted January 28, 2014 Author Share Posted January 28, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now