1. Login to FileZilla FTP and locate this file in the directory .../themes/classic/templates/catalog/listing
2. View / Edit the category.tpl file using Notepad++
3. Edit the code as below
{extends file='catalog/listing/product-list.tpl'}
{block name='product_list_header'}
<div class="block-category card card-block hidden-sm-down">
<h1 class="h1">{$category.name}</h1>
{if $category.description}
<div id="category-description" class="text-muted">{$category.description nofilter}</div>
{/if}
{if $category.image.large.url}
<div class="category-cover">
<img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}">
</div>
{/if}
</div>
<div class="text-sm-center hidden-md-up">
<h1 class="h1">{$category.name}</h1>
</div>
{/block}
Edit / remove the red code above and make it only as below
{extends file='catalog/listing/product-list.tpl'}
{block name='product_list_header'}
<div class="text-sm-center hidden-md-up">
</div>
{/block}
4. Save the file and re-upload to the same directory and replace the old one
5. Login to prestashop back office Advanced Parameters >> Performance >> Clear Cache
6. Now browse to the shop the block header should be disabled
Thanks, it's ok
ReplyDeleteexcellent work! alot better without the block
ReplyDeleteHi,
ReplyDeleteAfter upgrading to 1.7.6.8 category block header appears again despite category.tpl file is changed.
Meaning the upgrade you have done restored the same codes or they could have put it somewhere else. If you know how to use browser developer tools you could actually finds which file they put it... I havent try the 1.7.6.8 version
Delete