I'm using magento 2 and I would like to configure my sidebar from the category page , for example , now in my sidebar I have also Compare products and My whish list , and I would like to get rid of them from there. There is any option in the admin panel to do that , or which is the file to edit so I can hide the code for that ?

1 Answer 1


You can just add below code to your theme default.xml file and remove sidebar wishlist and compare product block using xml.

<referenceBlock name="wishlist_sidebar" remove="true"/>
<referenceBlock name="catalog.compare.sidebar" remove="true"/>

Remove cache and check.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.