pippobr80 Posted March 24, 2014 Share Posted March 24, 2014 There is a way to Get off the pictures of the subcategories, as I have marked in the picture. Thanks. Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 hello you want to remove only pictures, or whole subcategories block? Link to comment Share on other sites More sharing options...
pippobr80 Posted March 24, 2014 Author Share Posted March 24, 2014 I would like to remove the entire block subcategoriesthanks Vekia Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 ok, so please open category.tpl file located in your theme. if you use default template, path to file looks like: /themes/default-bootstrap/category.tpl remove this code: <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} Link to comment Share on other sites More sharing options...
pippobr80 Posted March 25, 2014 Author Share Posted March 25, 2014 ok, so please open category.tpl file located in your theme. if you use default template, path to file looks like: /themes/default-bootstrap/category.tpl remove this code: <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} Good morning, I'm not deleting the correct code. Can you give me the exact number of line- thanks Link to comment Share on other sites More sharing options...
vekia Posted March 25, 2014 Share Posted March 25, 2014 hello by default this code start from 74 line, end of the code: 98 line take a look: 1 Link to comment Share on other sites More sharing options...
pippobr80 Posted March 25, 2014 Author Share Posted March 25, 2014 Thanks a lot...... Link to comment Share on other sites More sharing options...
Melville Posted February 25, 2015 Share Posted February 25, 2015 hello Is this the same for 1.6 Thanks take a look: Link to comment Share on other sites More sharing options...
72hoursweb Posted June 5, 2015 Share Posted June 5, 2015 how about just hide the image and kept the listing Link to comment Share on other sites More sharing options...
juweeltje5 Posted July 23, 2015 Share Posted July 23, 2015 i have prestashop 1.6 cloud version. and it works great, i removed the text and now the subcategorie block are no longer visible on my webshop, thank you Vekia Link to comment Share on other sites More sharing options...
NewUser001 Posted May 7, 2016 Share Posted May 7, 2016 (edited) HI. I removed the lines mentioned in the post but the image block still shows. Please help. I am using version 1.6.1.4 Edited May 7, 2016 by NewUser001 (see edit history) Link to comment Share on other sites More sharing options...
ibrstore Posted July 22, 2016 Share Posted July 22, 2016 Getting Problem unable to display Subcategories images. Plz help me i have already uploaded images Category thumbnail. Showing on page image not available. http://www.ibrstore.com/14-electronics Link to comment Share on other sites More sharing options...
Sarahbirdsboutique Posted August 3, 2016 Share Posted August 3, 2016 I'm using 1.6.1.6 and deleting the block of code as described removed the empty image boxes I had at the top of my main catagory pages. Very pleased looks much better now. Tried to comment the code out but it didn't work 1 Link to comment Share on other sites More sharing options...
miniwalis Posted October 19, 2016 Share Posted October 19, 2016 I just delete at category.tpl (like Vekia said - many thanks) 1. {foreach from=$subcategories item=subcategory} to {foreach} 2. <h4 class="page-subheading">{l s='Subcategories'}</h4> and work well. Hope it will work in future ) Link to comment Share on other sites More sharing options...
Recommended Posts