I have looked at other answers, and there is no problem in my path or my xml file I believe, In my own theme I am extending the blank theme and the blank theme did not contain any layout/default.xml so I added it from the luma theme and making changes there did take effect on the page.

   <?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">
        <referenceContainer name="header.panel">
            <block class="Magento\Framework\View\Element\Html\Links" name="header.links">
                    <argument name="css_class" xsi:type="string">header links</argument>

          <referenceBlock name="catalog.compare.sidebar" remove="true" />
            <referenceBlock name="sidebar-additional" remove="true" /> 

        <referenceBlock name="logo">
                <argument name="logo_img_width" xsi:type="number">148</argument>
                <argument name="logo_img_height" xsi:type="number">43</argument>
        <referenceContainer name="footer">
            <block class="Magento\Store\Block\Switcher" name="store_switcher" as="store_switcher" after="footer_links" template="Magento_Store::switch/stores.phtml"/>
        <referenceBlock name="report.bugs" remove="true"/>
        <move element="copyright" destination="before.body.end"/>

I am placing my default.xml file in /app/design/frontend/vendor/mytheme/Magento_Theme/layout/default.xml

Where vendor is my own vendor name, I have tried to make errors in the xml but no errors come up in the logs, seems as if Magento does not find my default.xml

Might be unrelated but the pub/static folder should contain a copy of my theme, but there is no /Magento_Theme/

folder there, I am assuming it should be there.

For a coworker doing the exact same procedure as me it worked fine, but instead using Magento-Luma as parent theme.

  • have you set mytheme as content theme configuration in backend then it should work default.xml file Dec 6, 2019 at 14:12
  • Yes, my theme is working correctly and I am able to style it to my will. The only problem I am having is that my default.xml just won't apply. Magento is not recognizing it at all. It is as if it does not allow me to extend/overwrite Magento_Theme folder.
    – Simontaga
    Dec 6, 2019 at 14:42

1 Answer 1


Issue resolved:


Had to change a value in the database for my theme, changing it from virtual to physical.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.