Jump to content

Replace category heading text with thumbnail on the 'Sub-Category' landing page


Recommended Posts

in category.tpl this is the code that brings up the category text heading, I need to replace it with the relevant category/sub-category thumbnail image instead of the category name.

 

{if $category->id AND $category->active}
<h1 class="page-heading{if (isset($subcategories) && !$products) || (isset($subcategories) && $products) || !isset($subcategories) && $products} product-listing{/if}">
<span class="cat-name">
{$category->name|escape:'html':'UTF-8'}{if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'}{/if}
</span></h1>
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...