Magento2 : How to Call CMS Static Block in Phtml File

December 28, 2018

In this Tutorial We are Learning How to Call CMS Static Block in Phtml File Magento 2.

Create CMS Static Block from Admin Side

  1. Open Magento 2 Admin Panel
  2. Go to Content>Blocks
  3. Click on Add New Block Button
  4. Enter Details and Click on Save Block

After Completing the Above Steps. Now we Display CMS Static Block in Fronted

Display CMS Static Block in XML

Here is the Code to Show CMS Static Block in Any Layout File in Magento 2.

Display CMS Static Block In CMS Content

Here is the Code to Show CMS Static Block in any other CMS Page/Static Block in Magento 2.

Display CMS Static Block in Phtml File

Here is the Code to Add CMS Static Block in Any Phtml(template) file in Magento 2.

Hope this Helpful……..

Karan Suthar

Surat, India

I'm Karan, the creator Behind the KTechBlog. I write Blogs in my Free Time. I ❤ to learn new Technologies and Share with Others. I'm Trying best effort to make KTechBlog useful for Everyone.