I want to change the detail tabs in the product view page like a simple order.


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim.

More Information

Activity Gym, Athletic

Material Metal, Rubber, Silicone

Gender Women

Category Electronic, Exercise, Timepiece

How to change below tabs in simple order as defined above. enter image description here

  • do you want details first and after more information ?
    – Pawan
    Feb 24, 2020 at 12:53
  • yes, I have updated with a new screenshot Feb 24, 2020 at 12:56

2 Answers 2


Override template file details.phtml in your custom theme.

Path: app/design/frontend/[vendor]/[your-theme]/Magento_Catalog/templates/product/view/details.phtml

& replace all the code with the below code.

<?php if ($detailedInfoGroup = $block->getGroupSortedChildNames('detailed_info', 'getChildHtml')) :?>
    <div class="product info detailed">
        <?php $layout = $block->getLayout(); ?>
            <?php foreach ($detailedInfoGroup as $name) :?>
                $html = $layout->renderElement($name);
                if (!trim($html)) {
                $alias = $layout->getElementAlias($name);
                $label = $block->getChildData($alias, 'title');
                     <h3><?= $block->escapeHtmlAttr($alias) ?></h3>
                    <?= /* @noEscape */ $html ?>
            <?php endforeach;?>
<?php endif; ?>

Just for your info: By the way, Magento provides the best way to show description & specification in tabs. if you still want to change then you can replace that file code.


To change the title, Go to your catalog_product_view.xml (also override this file) & search for the below code.

   <argument translate="true" name="title" xsi:type="string">More Information</argument>

& replace it with.

  <argument translate="true" name="title" xsi:type="string">Specification</argument>
  • thanks, it's working, now i need to change the More information to Specification Feb 25, 2020 at 6:19
  • please check my updated answer Feb 25, 2020 at 6:25
  • done but not working Feb 25, 2020 at 6:28
  • please flush the cache: php/bin magento c:f Feb 25, 2020 at 6:28
  • hey, please replace <h3><?= $block->escapeHtmlAttr($alias) ?></h3> to <h3><?= $label ?></h3> in details.phtml & let me know if this is working or not? Feb 25, 2020 at 6:33

you can change this "More Information" to "Specification" using the theme

go to your child_theme/i18n/en_US.csv file

"More Information","Specification"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.