Jump to content

How to hide category description boxes.


Recommended Posts

Hi,

 

Can somebody please help, been going out of my mind for 2 hours now. I can't seem to find a way to hide the category and subcategory description/image boxes that appear on the top of the page.

 

I managed it in 1.6 but after trawling through every config file I'm stumped!

 

Thanks in advance!

 

Jay - getonthis.co.uk

Link to comment
Share on other sites

Found it! themes/classic/templates/catalog/listing/category.tpl

 

removed:

 

  <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="{$category.image.legend}">
        </div>
      {/if}
    </div>
  • Like 1
Link to comment
Share on other sites

  • 7 months later...

Hi,

I'm new to the PrestaShop community and coding, so I probably made a simple error. But if I adapt the code as described, nothing changes for me. I've tried this on XAMPP and live server and cleared the cache.

I've edited the file category.tpl in folder /themes/classic/templates/catalog/listing to this:

 

{extends file='catalog/listing/product-list.tpl'}

{block name='product_list_header'}
    <div class="text-sm-center hidden-md-up">
      <h1 class="h1">{$category.name}</h1>
    </div>
{/block}

In fact every change I try in this file is not working, but if I eliminate the file the block disappears (so it looks like I'm working the right file). Thanks in advance for any help.

  • Like 1
Link to comment
Share on other sites

  • 11 months later...
On 2/18/2018 at 5:07 AM, MatthiasVK said:

Hi,

I'm new to the PrestaShop community and coding, so I probably made a simple error. But if I adapt the code as described, nothing changes for me. I've tried this on XAMPP and live server and cleared the cache.

I've edited the file category.tpl in folder /themes/classic/templates/catalog/listing to this:

 


{extends file='catalog/listing/product-list.tpl'}

{block name='product_list_header'}
    <div class="text-sm-center hidden-md-up">
      <h1 class="h1">{$category.name}</h1>
    </div>
{/block}

In fact every change I try in this file is not working, but if I eliminate the file the block disappears (so it looks like I'm working the right file). Thanks in advance for any help.

You are right. At least I was looking to eliminate the block and this helped me.

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