Answers for "call html file in static block magento 2"

1

magento2 add static block in phtml

<?= $block->getChildHtml('my-main-phtml-block-cms') ?>
Posted by: Guest on June-04-2021
1

magento2 add static block in phtml

<referenceBlock name="my-main-phtml-block">    <block class="MagentoCmsBlockBlock" name="my-main-phtml-block-cms">        <arguments>            <argument name="block_id" xsi:type="string">my_cmsblock_identifier</argument>        </arguments>    </block></referenceBlock>
Posted by: Guest on June-04-2021

Code answers related to "call html file in static block magento 2"

Browse Popular Code Answers by Language