Jump to content

[SOLVED] Matrice theme: category description isn't displayed?


Recommended Posts

I'd like the category description to show at the top of the category page - above the products.

I'm having a hard time understanding why this doesn't work. category.tpl reads:

{if $category->description}

{$category->name|escape:'htmlall':'UTF-8'}
       {$category->description}

   {/if}

Link to comment
Share on other sites

Hi, I am new here but I think can help you out a little bit. If you add an image in the category along with the description, the description will appear(along with the image) above the products. If you add a description without a image you will only get the description when you hover over the category and will not appear above the products

Link to comment
Share on other sites

Thank you for the new perspective!! I just took another look and realized the IF statement for the description is nested inside the IF statement for the image... so I moved the description down a few lines (outside of the div) and it works! Finally!!

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
{if $category->id_image}
     
     <!--getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" />-->
   {if $category->description}

{$category->name|escape:'htmlall':'UTF-8'}
       {$category->description}

   {/if}

   {/if}



it works for me...have a try

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