Jump to content

[SOLVED] Display subcategory logo but delete it as category header


Recommended Posts

Hi all

I was wondering if someone could please help me with this.

What i am trying to do is make it so there is no image above the products in a subcategory but when i delete this it deletes the category logo image on the parent category. I also would like to keep the parent heading image.

I tried image mapping and inserting a pixel of white but it blows it out and i end up with a huge white space


http://www.chiclinen.com.au/category.php?id_category=6

I hope this makes sense

25042_TLGi629h1yv74dvsZx0g_t

25043_IizKL1qrpcg8GU1fByYZ_t

Link to comment
Share on other sites

You'll need to change lines 20-24 of category.tpl in your theme's directory from:

{else}
   <!-- Category image -->
   {if $category->id_image}
       <img src="{$link->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}



to:

{*{else}
   <!-- Category image -->
   {if $category->id_image}
       <img src="{$link->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}*}

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