Jump to content

How to make category page looks like main


Alisdair

Recommended Posts

Hello,

 

I want to make category page looks exactly same as my main page

 

 

Category page :

 

post-1421673-0-93572700-1502311285_thumb.png

 

 

Main page : 

 

 

post-1421673-0-87986300-1502311159_thumb.png

 

 

 

To do this I must remove this :

 

post-1421673-0-49153400-1502311402_thumb.png

 

Please help me how to remove it. I am on Prestashop 1.7.20

 

Link to comment
Share on other sites

Hi there,

 

There are 2 ways to remove it.

1. You can hide it by css.

 

Go to file theme.css in your theme. themes/your_theme/templates/assets/css/theme.css

For hide block breadcrumb

Find the code:

#wrapper .breadcrumb{

/* add line code*/

 display: none;

}

For hide block category

breadcrumb

.block-category {

/* add line code*/

 displaynone;

}

 

2. You can remove this block from your template.

 

Go to file template: themes/your_theme/templates/_partials/breadcrumb.tpl

Remove all code in this file.

Go to file template: themes/your_theme/templates/catalog/listing/category.tpl

Remove code (From line code 27 to 42)

{block name='product_list_header'}

.....

{/block}

Link to comment
Share on other sites

Thanks, It works. I customized category.tpl to this :

 

{block name='product_list_header'}
 <div class="">
       <h1 class="h1">{$category.name}</h1>
    </div>
{/block}
 
 
So it only display category name without that big container
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...