Home » Magento, Magento 221 March 2016

Magento 2: How to call CMS Static Block from template (phtml) file?

In Magento 1.x, you could call/print the CMS Static Block in template file with the following code:

In Magento 2.x, it’s quite similar.

Below is the code to call/print CMS Static Block in any template file in Magento 2:

If you would like to call another block within CMS Block in Magento 2, then you can simply write the following code:

Hope this helps. Thanks.

Magento 2

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed