Magento2 changes

Hi I am new inMagento 2and I want to know where I have to put thevendor/magento/module-theme/view/frontend/layout/default.xmlfile, I tried to copy the file and put it inc:\wamp\www\kk2\app\design\frontend\Magento\MyStore\layoutfolder and is not working. I also tried inc:\wamp\www\kk2\app\design\frontend\Magento\MyStore\module-theme\layoutand 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.

Create folder and copydefault.xmlfile in your theme


remove generate folder and run

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

It's working

You do not need to copy any file. You can create your own theme. Quoting steps increate a theme

  1. Create a directory for the theme underapp/design/frontend/<your_vendor_name>/<your_theme_name>.
  2. Add a declaration filetheme.xmland optionally createetcdirectory and create a file namedview.xmlto the theme directory.
  3. Add acomposer.jsonfile.
  4. Addregistration.php.
  5. Create directories for CSS, JavaScript, images, and fonts. Configure your theme in the Admin panel.

The Luma theme isnotdesigned to be inherited from. Please seethis comment on Github. You can however, inherit from the blank theme as follows:

<theme xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
 <title>New theme</title> <!-- your theme's name -->
 <parent>Magento/blank</parent> <!-- the parent theme, in case your theme inherits from an existing theme -->
     <preview_image>media/preview.jpg</preview_image> <!-- the path to your theme's preview image -->
What Others Are Reading