Jump to content

Duplicate text content at top of categories (More... added)


Recommended Posts

Help!

 

The first paragraph of text is duplcating at the top of all my Category pages. Every category page features an image. Then the duplicate paragraph which ends with the word "More" (and it isn't a link)

 

The More tag is reminiscent of WordPress, but the HTML gives no indication of any such tag. It starts with the <h2> goes on to the <p> etc. etc. and nothing seems duplicated.

 

I checked all the Modules and could find none that could be misconfigured to make this happen.

 

Any ideas?

 

 

post-693871-0-71277000-1382741623_thumb.jpg

Link to comment
Share on other sites

I did.. changed the <p> tags to <div>  but the problem persists.

 

Here's the code in the themes>default>categories.tpl file. I think the culprit is in bold below because the duplicated text appears in each category with a 'More' link (although it doesn't work)...

 

{if $category->description}

<div class="cat_desc">

{if strlen($category->description) > 120}

<div id="category_description_short">{$category->description|truncate:120}</div>

<div id="category_description_full" style="display:none">{$category->description}</div>

<a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>

Link to comment
Share on other sites

I couldn't for the life of me figure out what    and add the {* ....code... *}  (2x)  meant. Where? Replace the entire green code with {* ...code... *}  twice?

 

It was easier to just change the <p> tags to <div>s...   of course, that didn't work.

Link to comment
Share on other sites

×
×
  • Create New...