Instagram

About Me

Photo Profile
Meetanshi Architecture Designer

Meetanshi is found based on providing the best Magento Extensions and Customized eCommerce Business Solutions perfected to the users’ needs. Our Happy users make us Happy. Complete satisfaction to our clients is what drives and motivates us to work hard. Read More

Tuesday, June 28, 2022

How To Call Phtml File In CMS Static Block In Magento 2

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


Get more of our update !