Jump to content

Manage Image Of Sub Category


Recommended Posts

Hello, in my Prestashop project I do not want to add images for each category but in parenting category

I need to have the image ( 125 x 125 px ) pointing to that sub category.

How I can do that? I tried to add image just to "Category Thumbnail" but it is not displayed in Sub category template...

 

Is there any way to remove sub category image template as well from sub categories?

Link to comment
Share on other sites

  • 1 month later...

You need to use the main image. Since you don't want the main ones to display though, you will have to edit category.tpl as wmh90 said, and get rid of the part with the background image

{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) right center no-repeat; background-size:cover; min-height:{$categorySize.height}px;"{/if}

You might have to change the color of the description text afterwards

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