Jump to content

Recommended Posts

Hi,

 

I want to know how can i delete the category image that is showing when you enter in that category, because i don't like to see it above all the subcategories that category has. I think it's editing the file named category.tpl, but i don't know how to do it.

 

 

Thanks a lot for all the help you can offer me.

Link to comment
Share on other sites

You are correct. In your category.tpl simple comment out (or remove) the following

 

{if $scenes}
  <!-- Scenes -->
  {include file="$tpl_dir./scenes.tpl" scenes=$scenes}
 {else}
  <!-- Category image -->
  {if $category->id_image}
  <div class="align_center">
   <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" width="{$categorySize.width}" height="{$categorySize.height}" />
  </div>
  {/if}
 {/if}

 

Remember to backup your file before starting.

 

Hope that helps!

 

Marty Shue

Link to comment
Share on other sites

The template is just standard HTML/CSS/Javascript + smarty placeholders so anything you can do with those things you can do in the template. So you could set all categories to have the same image, add in special cases for certain category IDs, etc.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

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