plutten22 Posted October 17, 2016 Share Posted October 17, 2016 (edited) Hi. Can someone please tell me how i can remove subcategories thumbnail on product list page. I have tryde doing like this: https://www.prestashop.com/forums/topic/515645-remove-subcategories-pictures/ but it dont work. Ive also tryd doing what other topics describe but dont work. Please help ! Prestashop 1.6.1.7 Regards Plutten22 Edited October 17, 2016 by plutten22 (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted October 18, 2016 Share Posted October 18, 2016 Do you want to remove just the subcategory thumbnails or the entire "Subcategories" section? Link to comment Share on other sites More sharing options...
plutten22 Posted October 18, 2016 Author Share Posted October 18, 2016 Hi. Thanks for reply. I want to remove the thumbnails. Link to comment Share on other sites More sharing options...
rocky Posted October 18, 2016 Share Posted October 18, 2016 I suggest {* commenting out *} lines 81-89 of themes/default-bootstrap/category.tpl: <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="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> This will remove the image, though the subcategory will stay the same size. You'll need to adjust the CSS on lines 50-55 of themes/default-bootstrap/css/category.css to fix this: #subcategories ul li { float: left; width: 145px; margin: 0 0 13px 33px; text-align: center; height: 202px; } You can adjust the width and height of each subcategory here or remove those lines altogether to not have fixes sizes. Link to comment Share on other sites More sharing options...
plutten22 Posted October 24, 2016 Author Share Posted October 24, 2016 Hi Rocky. Thanks for help. I did what you said but i still have "No image available" text Se attached picture More help please Plutten22 Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2016 Share Posted October 24, 2016 Go to Advanced Parameters > Performance tab and make sure "Never compile templates" isn't selected. You can also try clicking the "Clear cache" button. Link to comment Share on other sites More sharing options...
plutten22 Posted October 25, 2016 Author Share Posted October 25, 2016 Hi. Thanks Rocky !!! It workt fine. Regards Plutten22 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