Hi!
I have category "Deals" and for this category i want to remove, let say sidebar block. How can i remove it programmatically? It works if I update product category design on backend, but this is not what I want. I want to remove blocks with layout change - programmatically, if it's possible.
For example, for catalog product view I've created layout in my module/view/frontend/layout/catalog_product_view_type_deals.xml. Is there any similar way to achieve that the same way for only one category?
Kind regards,
Denis
Hello
Follow the below steps for the solution:
http://drops.meetanshi.com/1cbb4b
Hope it helps.
Hi Denis,
You can change the category page layout from admin in the Magento 2. Check this link it will help you. You just need to select 1 column layout for your category "Deals" by editing this category.
Let me know if it will work for you.
Thanks
--
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.