PHTML file stores the php codes that dynamically generates the HTML code that is sent to the client’s browser. In case you want to display a dynamic content, you may require to call PHTML in CMS static block in Magento 2.
An example of that is showing a Instagram image on a page in Magento 2 store. In that case, you can add call the PHTML file and control how the HTML will be generated and shown to the viewers on the frontend.
You can read more at https://meetanshi.com/blog/call-phtml-file-in-cms-static-block-in-magento-2/
No comments:
Write comments