Skip to content

Instantly share code, notes, and snippets.

@cagartner
Created May 10, 2017 18:24
Show Gist options
  • Save cagartner/bb3043785bce733c8d61749b234f48e6 to your computer and use it in GitHub Desktop.
Save cagartner/bb3043785bce733c8d61749b234f48e6 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