i have created custom theme
/app/design/frontend/VendorName/ThemeName
It works fine. I see it in the admin, styles from it are applied, etc. But When I try to extend module layout Magento 2 don't see xml. I have created:
/app/design/frontend/VendorName/ThemeName/Magento_Catalog/layout/default.xml
wich contains:
<?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>
<move element="catalog.compare.sidebar" destination="sidebar.additional" after="-" />
</body>
</page>
And there are no results at all. If I place this rule in
/vendor/magento/module-catalog/view/frontend/layout/default.xml
move works fine. But in custom theme xml just being ignored. I try to break it like
<body
and page don't fail with error. So I think xmls from theme are ignored completely.
And yes, I
bin/magento cache:clean
before checking.