dwhobbyshop Posted June 26, 2014 Share Posted June 26, 2014 (edited) Hello, i'm coming from opencart and now i'm busy with setting up my prestashop 1.6.0.6 Is it possible to not show the category picture when your in a subcategory, or product list? I don't know if i'm explaining it good. If i don't have a image for a category, i just see the name off the category. I would like that also even when there is a picture for the category. Like in the image below i would like the serpent not to be showed. Already tryed something with the image menu, and now they are not placed anymore in the middel Best regards Kristof Edited June 26, 2014 by dwhobbyshop (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 26, 2014 Share Posted June 26, 2014 you mean something like this: ? Link to comment Share on other sites More sharing options...
dwhobbyshop Posted June 26, 2014 Author Share Posted June 26, 2014 (edited) No i just want that you don't see the big logo on top. Edited June 26, 2014 by dwhobbyshop (see edit history) Link to comment Share on other sites More sharing options...
dwhobbyshop Posted June 27, 2014 Author Share Posted June 27, 2014 Anybody has a solution for this? Link to comment Share on other sites More sharing options...
spondishy Posted June 28, 2014 Share Posted June 28, 2014 I have exactly the same problem. How do you remove the image from the top of the category? Link to comment Share on other sites More sharing options...
vekia Posted June 29, 2014 Share Posted June 29, 2014 hello thanks for clarification open category.tpl file and remove this code: {if $scenes || $category->description || $category->id_image} <div class="content_scene_cat"> {if $scenes} <div class="content_scene"> <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {if $category->description} <div class="cat_desc rte"> {if Tools::strlen($category->description) > 350} <div id="category_description_short">{$description_short}</div> <div id="category_description_full" class="unvisible">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category.link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div>{$category->description}</div> {/if} </div> {/if} </div> {else} <!-- Category image --> <div class="content_scene_cat_bg" {if $category->id_image}style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;" {/if}> {if $category->description} <div class="cat_desc"> <span class="category-name"> {strip} {$category->name|escape:'html':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'} {/if} {/strip} </span> {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> <div id="category_description_full" class="unvisible rte">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div class="rte">{$category->description}</div> {/if} </div> {/if} </div> {/if} </div> {/if} 4 Link to comment Share on other sites More sharing options...
dwhobbyshop Posted June 30, 2014 Author Share Posted June 30, 2014 Hello, i deleted that code, but stil seeing the image. I'm gonna leave it like that. Just gonna take some bigger pictures for upload, so they are a little bit nicer Link to comment Share on other sites More sharing options...
spondishy Posted June 30, 2014 Share Posted June 30, 2014 OK I did this. change <div class="content_scene_cat_bg" {if $category->id_image}style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;" {/if}> To <div class="content_scene_cat_bg"> 5 Link to comment Share on other sites More sharing options...
vekia Posted June 30, 2014 Share Posted June 30, 2014 so you don't removed this code if it is still there Link to comment Share on other sites More sharing options...
spondishy Posted June 30, 2014 Share Posted June 30, 2014 I just changed the above and it all worked fine for me. Not sure if that's what dwhobbyshop wanted. Thanks 1 Link to comment Share on other sites More sharing options...
vekia Posted June 30, 2014 Share Posted June 30, 2014 well i bet that it works the same he he he Link to comment Share on other sites More sharing options...
banchijojo Posted January 25, 2015 Share Posted January 25, 2015 This is an older post BUT I just wanted to comment that it is pretty silly that this image cannot be toggled on and off like v1.5. I have one shop in 1.5 and my new shop on 1.6 Back in the good old days in 1.5, when the main category image was deleted, it removed the image AND the space for it. This feature was actaully made harder now. Weird... 1 Link to comment Share on other sites More sharing options...
Recommended Posts