I have create my theme From default magento-luma theme so luma is a parent them of my theme.
Below is the Step that I followed to create my theme from luma.
1). copy theme-frontend-luma folder from vendor/magento and place it to app/design/frontend/package_name/theme_name.
now onwards all below changes I have done in my theme folder.
2). in register.php file I changed with my package name and theme name.
<?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::THEME, 'frontend/Forever/theme', __DIR__ );
3). theme.xml file
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd"> <title>Forever Theme</title> <parent>Magento/blank</parent> <media> <preview_image>media/preview.jpg</preview_image> </media>
Now I go to admin content->design->themes and I see that now my theme is showing there so I go to **store->configuration->general->design and assign my package and theme.
After that using CMD I run magento setup:static-content:deploy comment.
Now I go to frontend and what I see is yeah I done this. I have set up my theme for magento2 store.
but when I enable template path hint and see in frontend some of the content (modules) are coming from vendor folder.so I have done some changes in vendor folder. So If I upgrade my magento version so will my changes remove?
Now what I want is below.
Like magento 1.x if we create theme from base folder then all modules are coming from our theme folder not from base I want same for magento 2.x And I don't want to come any module from vendor folder. so what I need to do?