Jump to content

How do i HIDE categories Thumbnails in prestashop 1.6.x?


ronelgon

Recommended Posts

Hello,

How do i HIDE categories thumbnails in prestashop 1.6.x? I want to completely hide the thumbnails because i have many categories and yet not able to add thumbnails to all of them and the same i dislike the default thumbnail of  showing "?"

 

Now i just want to display only category titles without thumbnails.

 

Your help will be highly appreciated

 

Thank you

Ronnie

Link to comment
Share on other sites

Open yourdomain\themes\yourtheme\category.tpl and find this code:

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

and comment out or delete.

Link to comment
Share on other sites

Thanks alot.Yes it has worked as i wanted.However, i would also like to reduce the font size of the sub category titles. The font is abit BIG.how do i reduce the font size for sub category titles?

 

Otherwise thanks once again

 

Ronnie

Link to comment
Share on other sites

Open yourdomain/themes/yourtheme/css/category.css and find code:

 

#subcategories ul li .subcategory-name {
    color: #555454;
    font: 600 18px/22px "Open Sans",sans-serif;
    text-transform: uppercase;
}

Change 18px to something smaller

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...