How to call static block on homepage?

Follow below instructions to call static block on homepage

  1. Login to your admin panel.
  2. Go to Content –> Blocks and click on it.

3. Click on Add New Block button to create new static block.

4. Enter the below information.

  • Enable Block: Enable the block.
  • Block Title: Enter the block name.
  • Identifier: Enter the identifier name(It has to be unique)
  • Store View: Select the store view to show the static block.
  • Block Content: Add the block content.

5. Then click on Save button.

6. Now go to Content –> Pages and click on it.

7. Go to Homepage select button and click on edit.

8. Paste your code as shown.

Code:- {{ block class=”Magento\Cms\Block\Block” block_id=”custom_texts” }}

Note:- Change your block_id=”block_Identifier” .

9. Then click on Save button and clean your cache.

10. At last refresh your home page and see your result.