I am new fresher and start Magento 2 development I have created a Magento 2 theme and I have created a custom header and footer how I add my custom header footer in Magento 2 theme enter image description here

enter image description here

this is my theme view this is my simple theme folderenter image description here

and this is my custom header and footer how I add this header and footer in this theme


1 Answer 1


Please check Luma theme,

You can see that header & footer is defined under

vendor/magento/module-theme/view/frontend/templates/html folder.

So, we have to create Magento_Theme under

app/design/frontend/{packagename}/{themename}/Magento_Theme/templates/html/header.phtml &

Not the answer you're looking for? Browse other questions tagged or ask your own question.