Shahraam Posted February 26, 2016 Share Posted February 26, 2016 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 More sharing options...
wmh90 Posted April 25, 2016 Share Posted April 25, 2016 You will have to edit your category.tpl file of your theme. Look for the subcategory section in the code, it's easy. Link to comment Share on other sites More sharing options...
NemoPS Posted April 25, 2016 Share Posted April 25, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now