Jump to content

How to remove category description box completely


Patsy

Recommended Posts

Hi there guys,

I'm using the latest module 1.7.6, free template, and I cant seem to find where to remove the category description box which appears on every category I have created.
I want it removed completely, how can I do this at the back office pls?

Thanks in advance!

Screen Shot 2020-09-01 at 2.28.36 PM.png

Link to comment
Share on other sites

  • 10 months later...

@Patsy

 

You can do two way one without modify the template and with modify the template.

Without modify template you can put the css which suggested byother

.block-category.card.card-block {
    display: none;
}

using this module  

By modify the template file you can edit this file  1.7.7.5\themes\classic\templates\catalog\_partials\category-header.tpl and remove  

 

<div id="js-product-list-header">
    {if $listing.pagination.items_shown_from == 1}
        <div class="block-category card card-block">
            <h1 class="h1">{$category.name}</h1>
            <div class="block-category-inner">
                {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>
    {/if}
</div>

 

 

Hope it will solve your issues

 

Thank you

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