Search code examples
magentomagento2magento-2.0

Magento2 changes


Hi I am new in Magento 2 and I want to know where I have to put the vendor/magento/module-theme/view/frontend/layout/default.xml file, I tried to copy the file and put it in c:\wamp\www\kk2\app\design\frontend\Magento\MyStore\layout folder and is not working. I also tried in c:\wamp\www\kk2\app\design\frontend\Magento\MyStore\module-theme\layout and other options but I can't figure where I have to put this to start modifying the theme, the documentation on the Magento offical page is not very clear.


Solution

  • Create folder and copy default.xml file in your theme

    app/design/frontend/magento/<your_theme_name>/magento_theme/layout/default.xml

    remove generate folder and run

    sudo php -f bin/magento setup:static-content:deploy

    It's working