cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove left side block verticale nav?

How to remove left side block verticale nav?

In the category page, there is two "Category" vertical navigation blocks in the left side bar. please see the screenshot. How to remove the vertical Categories, Compare products, and My wish list? Thanks!

20cb299b-ab41-4601-bee0-25037f75b241.png

3 REPLIES 3

Re: How to remove left side block verticale nav?

@CaliforniaA you can create default.xml file at the following location "<theme_dir>/Magento_Catalog/layout/default.xml" and below code inside it.

 

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="catalog.compare.sidebar" remove="true"/> 
        <referenceBlock name="wishlist_sidebar" remove="true" />
    </body>
</page>

After that use the below command.

 

sudo rm -rf var/cache/*

And check the results.

 

Thanks

Re: How to remove left side block verticale nav?

/

Re: How to remove left side block verticale nav?

But how does this remove the Categories block?