Skip to main content
1 of 2
Nirav Patel
  • 683
  • 4
  • 14

to display title with this code you need to add one argument in this block xml with below parameter.

<argument name="at_label" xsi:type="string">Custom Heading or Title</argument>

in your code you need to add below changes.

<referenceBlock name="product.info.details">
    <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.description"
           as="description" template="Magento_Catalog::product/view/attribute.phtml" group="detailed_info">
        <arguments>
            <argument name="at_call" xsi:type="string">getDescription</argument>
            <argument name="at_code" xsi:type="string">description</argument>
            <argument name="css_class" xsi:type="string">description</argument>
            <!-- add this line to display heading. -->
            <argument name="at_label" xsi:type="string">More Information</argument>
            <argument name="title" translate="true" xsi:type="string">More Information</argument>
            <argument name="sort_order" xsi:type="string">5</argument>
        </arguments>
    </block>
</referenceBlock>

Hope this solution help you to complete you task.

Note: Please make it right and add plus to this solution if this solution work for you.

Thank you.

Nirav Patel
  • 683
  • 4
  • 14