Posts

Showing posts with the label magento2 folder structure

Messing with magento custom theme, overriding magento theme.

Image
Before diving into theme customization we need to have an quick overview of magento 2 directory structure. Magento 2.x directory structure. As mentioned my earlier post magento 2 directory structure differ from magento 1, so it is important to have a clear knowledge about directory of magento 2. The root magento 2 project directory looks like the screen shot attached above. All you need to know about the app folder because other folders contains pre-defined core files which we will not modifying in order to customized our theme or module. Pre existing theme file resides under path <magento_root>vendor/magento/module-theme/view/frontend/ Magento came with two default theme Luma and Blank, you can override any one to create custom theme as per your choice. Overriding Luma Theme Now i am going to override Luma theme, you need to create these two mandatory file along with one optional file as follows. To overriding  your custom theme ...