Magneto 2 Call Phtml in Static Block and CMS page We can call phtml files in static block and CMS page both same as magento version 1.x. Here in this article we are going to explain how you can do this Magento 2.
Magneto 2 Call Phtml in Block and CMS page Example
In Static block and CMS page you can call any phtml template simply as below-
Magneto 2 Call Phtml in Static Block and CMS page Example:
{{block class="Magento\Framework\View\Element\Template" name="my_template" template="Magento_Theme::html/myTemplate.phtml"}} |