2

In continue with Magento 2: How to override Luma Theme Home Page

I'm getting error

Cannot read contents from file "D:/wamp/www/magento2/" Warning!file_get_contents(D:/wamp/www/magento2/): failed to open stream: No such file or directory

enter image description here

As i'm using Magento 2 CE on WAMP Windows 10, it shouldn't be file permission issue.

Jackson
  • 9,909
  • 29
  • 128
  • 217

1 Answers1

3

Maybe you have missing web and etc folder in your theme folder.

please add below code in your theme,

you need to copy entire web folder from /vendor/magento/theme-frontend-luma to app/design/frontend/Vendor/Theme/web folder

Also need to copy etc folder from default luma theme to your Vendor/Theme folder and check again

web folder is neccessary to add inside theme.

Now run command php bin/magento setup:upgrade

run deployment command, php bin/magento setup:static-content:deploy

Remove var folder and clear browser cache.

Set Your custom theme from

Content -> Design -> Configuration

Rakesh Jesadiya
  • 42,221
  • 18
  • 132
  • 183
  • 1
    Surely it shouldn't be necessary to copy the Luma theme folder? Should be sufficient to inherit from Luma theme. I can't quote you chapter and verse at the moment, but I though theme inheritance was one of the advertised features. – gwideman Nov 03 '16 at 16:04
  • where is stored etc folder and where need to place – zus Mar 20 '18 at 10:56