-
-
Save igorhasse/b681b2832351ef57af32eb1258d801ed to your computer and use it in GitHub Desktop.
Magento 2 como adicionar bloco estático
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('bloco_id')->toHtml();?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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