I try to override my layout file from my theme in my child theme
I'm on magento 2.2.11 and I want to override my xml file from my theme with a child theme. I try to follow magento doc without success
I have :
app/design/frontend/Myvendor/mytheme/Myvendor_Header/layout/default.xml
And I want override him.
I try with this:
app/design/frontend/Myvendor/mytheme_child/Myvendor_Header/layout/override/theme/Myvendor/mytheme/default.xml
And my xml child doesn't work, I don't have error. It load only my parent xml.
My child theme is defined correctly because my .phtml files override parent file.
Do you have an solution for override my layout parent ?
I found a solution to my problem.
Go to your database -> table "theme" -> columns "type" must be 0
For force a particular website go to index.php and add these lines :
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = "my_website_view";
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'store';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
app/design/frontend/Myvendor/mytheme_child/Myvendor_Header/layout/default.xml