Magento 2 – How to call a custom phtmlfile in another phtml file, xml layout, static block and cms page?

Do you want to know how to Call PHTML file from another PHTML file in Magento 2

Custom File Path: app/design/frontend/{Package}/{theme}/Magento_Theme/templates/html/test.phtml


To call in xml layout file

To call in blocks and cms pages

To call in any phtml file

Share this article

Leave a comment