Creating New Theme – Copy Magento 2 Luma Theme

magento-2.0magento-2.1magento2

I have created a new magento 2 theme by copying luma theme. The issue I have is though I have created the theme by coping luma including all directories and files including layout, css, less, js, phtml, but the theme is not a replica of luma.

Static blocks are not showing on home page (banners, products not is showing up), header, footer and styles are not showing.

I have done everything, i.e. reindex, flush cache, regenerated static content but nothing is working.

I know I can extend luma theme, but I want to create a new theme based on blank theme.

Best Answer

Finally I figured it out why the Static blocks are not showing on home page (banners, products not is showing up).

The reason why Static blocks are not showing is because the are used with Content > Elements > Widget. Widget are directly linked with Design Package/Theme, So when we have created a new theme the widget is not valid (or simply not linked to our custom theme), as it is still linked to Luma theme. So to show the static block on home again. Create a new Widget for our custom theme.

I Hope this Help to someone who is looking for the same.

Home Page Widget for Luma theme Magento 2

Related Topic