I'd like to add a static block as an additional custom tab in Magento 2.
CMS Static Block (hello-world)
<p>Hello world!</p>
catalog_product_view.xml
<block class="Magento\Catalog\Block\Product\View" name="product.helloworld" template="product/view/hello-world.phtml" group="detailed_info" >
<arguments>
<argument translate="true" name="title" xsi:type="string">Hello World</argument>
<argument name="priority" xsi:type="string">4</argument>
</arguments>
</block>
hello-world.phtml
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('hello-world')->toHtml();?>
At the moment nothing is being displayed. Can anyone suggest an edit to get the code above working?
Best Answer
Add Vendor_Module before template path
Try this, catalog_product_view.xml