Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save igorhasse/b681b2832351ef57af32eb1258d801ed to your computer and use it in GitHub Desktop.
Save igorhasse/b681b2832351ef57af32eb1258d801ed to your computer and use it in GitHub Desktop.
Magento 2 como adicionar bloco estático
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('bloco_id')->toHtml();?>
<referenceContainer name="footer">
<block class="Magento\Cms\Block\Block" name="test">
<arguments>
<argument name="block_id" xsi:type="string">bloco_id</argument>
</arguments>
</block>
</referenceContainer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment