cancel
Showing results for 
Search instead for 
Did you mean: 

How to call header and footer in custom script page which on Magento Root page?

How to call header and footer in custom script page which on Magento Root page?

How to call header and footer in custom script page? 

We need to call the header and footer for the root file. 

1 REPLY 1

Re: How to call header and footer in custom script page which on Magento Root page?

Hi @Ashish_k_php 

 

You can check this link :

https://magento.stackexchange.com/questions/182807/magento-2-include-header-and-footer-in-external-p...

 

But why would anyone do that ? you can create a module where you can create a page with header and footer, you can add all thing which you wanted in php file and additional Magento features.

Check this link how you can create a new page in magento 2 :

https://devdocs.magento.com/videos/fundamentals/create-a-new-page/

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy