Jump to content

Remove subcategories pictures PS 1.6.1.7


Recommended Posts

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 by plutten22 (see edit history)
Link to comment
Share on other sites

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

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