I am fairly new to Magento and I am currently working with version 2.1. I have created two new custom themes, I will call them Base and BaseChild for this example.
Locations
app/design/frontend/Base/default //Inherits from Luma
app/design/frontend/BaseChild/default //Inherites from Base
Inside the admin area, I have the base website set to use the BaseChild theme, and I have another site setup that is also using the BaseChild theme.
If I create a template file at BaseChild/default/Magento_Theme/templates/html/absolute_footer.phtml
and add content to it, this will override the section on the page properly for the template. However, if I create a layout file at BaseChild/default/Magento_Theme/layout/default.xml
and add the following content to it
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 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="footer-container" remove="true"/>
</body>
</page>
This does nothing. But if I put this same file in the parent at Base/default/Magento_Theme/layout/default.xml
it works and the footer is gone.
Why is my child theme not overriding properly even though the parent theme is.