cancel
Showing results for 
Search instead for 
Did you mean: 

How to call Block in product detailed page?

How to call Block in product detailed page?

i had created custom block in content -> block -> xyz (block name) now i wan to call this block in product detailed page.

How can i call this block in product detailed page?

1 REPLY 1

Re: How to call Block in product detailed page?

Add Below code on catalog_product_view.xml

<referenceContainer name="content">
<block class="Magento\Cms\Block\Block" name="unick_block_name">
<arguments>
<argument name="block_id" xsi:type="string">my_cmsblock_identifier</argument>
</arguments>
</block>
</referenceContainer>

You need to replace "my_cmsblock_identifier" with your CMS block Identifier or ID (i recommend using Identifier).

If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool