:::: MENU ::::
Posts tagged with: luma theme

Magento 2 Override default theme template files

If you are doing the custom theme then you must know how in Magento 2 Override default theme template files in your custom theme.You want to override all the files then simply go to.

vendor/magento/module-theme/view/frontend/

And copy the templates folder in your theme. In my case theme name is theme. So in my theme folder create the Magento_Theme Folder. And paste the templates folder there. Now your theme structure will look like this.

app/design/frontend/QaisarSatti/theme/Magento_Theme/templates

If you want override the single file like header.phtml. Then copy file from

vendor/magento/module-theme/view/frontend/templates/html/header.phtml

Paste in your theme. And file structure will look like

app/design/frontend/QaisarSatti/theme/Magento_Theme/templates/html/header.phtml
Author: Qaisar Satti
Category: Magento 2
Last Modified: March 28, 2018


Pages:12