Jump to content

Help with removing a subcategories image in only one location?


Recommended Posts

I'm trying to get rid of an image on just an inside page of subcategories. Not sure exactly how to explain, so I went for screen shots instead. I hope it explains what I want to get rid of!

 

Any help would be really appreciated. I'm very new to using PrestaShop, and like it a lot! I'm just frustrated with this.

 

Thanks!

post-391023-0-51145600-1345321261_thumb.png

post-391023-0-50896300-1345321265_thumb.png

Link to comment
Share on other sites

The first thing you need to do is create a back up of themes/yourtheme/category.tpl.

 

After that, in your original file remove the following lines of code

 

{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}
 {if $category->description}
  <div class="cat_desc">{$category->description}</div>
 {/if}

 

This will get rid of the category image.

 

If you encounter any problems upload your backup.

 

Hope that helps!

 

Marty Shue

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