I tried to override the XML file by copying the file from
vendor/magento/module-catalog/view/frontend/layout/catalog_category_view_type_default.xml
to
app/design/frontend/Infortis/base/Magento_Catalog/layout/catalog_category_view_type_default.xml
However, it is still loading the file from the vendor folder. I have tried clear & flush the cache, redeploy static content, but doesn't work.
below is the change i made ( comment out the container)
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!--<referenceContainer name="sidebar.main">
<block class="Magento\Catalog\Block\Navigation" name="catalog.leftnav" before="-" template="Magento_Catalog::navigation/left.phtml"/>
</referenceContainer>--> <!--remove shop by category from category listing page -->
</body>
</page>
sidebar.main
allover website?