As I have seen in other topics that some things were not working on local environment I was asking myself if it shoukd be the same problem with removing blocks. I have folowed Magento instructions and have looked for same issues but didn't found anything.
In fact I have tried to remove the catalog.compare.sidebar block from
by adding a default.xml file into
<?xml version="1.0"?> <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" /> </body> </page>
I have cleared all the caches but, unfortunately, this doesn't work at all. What is strange is that if I override a phtml file using the same method, there is no problem.
I have also tried with other xml files and it is always the same issue. I should make a mistake or forgot something, but I really don't find and after a full day of investigation I'm lost.
If somebody can help. Thanks in advance