0

I use a Porto theme for my Magento 2 store and wondering if there's an easy way to rename the Details tabs on product details page.

Actual screenshot of where I want to rename

3 Answers 3

1

app/design/frontend/Theme/Magento_Catalog/layout/catalog_product_view.xml

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";; xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <body>
    <referenceBlock name="product.info.details">                
      <referenceBlock name="reviews.tab">
        <arguments>
          <argument name="title" translate="true" xsi:type="string">Your Review tab name</argument>
        </arguments>
      </referenceBlock>
    </referenceBlock>
  </body>
</page>
4
  • Thanks HImanshu, I need to rename 'Reviews' tab as well. How can that be done?
    – Neha
    Commented Oct 15, 2020 at 9:38
  • Answers updated please check.
    – Himanshu
    Commented Oct 15, 2020 at 10:43
  • Thanks himanshu, but it didn't work. Tried couple of other options too as told by madani but that too didn't go well.
    – Neha
    Commented Oct 16, 2020 at 4:09
  • check in porto theme,,, theme already override catalog_product_view.xml this file so you can add this code in current activated file Commented Oct 16, 2020 at 6:04
0
  1. you can change the tabs name in products attribute code description,meta_description, and short_description

enter image description here

  1. Otherwise you can change your tabs name in your translation csv file.
16
  • Thanks madani, could you spell out where I can find these code files? Path or anything would help. I looked under app/design/porto/magento_catalog and magento_layout etc but could not exactly get to any files you are asking.
    – Neha
    Commented Oct 13, 2020 at 10:09
  • add your rename words in app/design/frontend/your theme name/ i18n/en_US.csv like, "Details","your rename word" "More Information","Your rename Word" "Review","Your rename word" Commented Oct 13, 2020 at 10:18
  • I have also checked under product description, meta description and short description but couldn't find anything where I can rename the tabs. Where i should look for translation csv?
    – Neha
    Commented Oct 13, 2020 at 10:18
  • Checked under en_US.csv but could not find Details, More Information and Review under this file to rename it.
    – Neha
    Commented Oct 13, 2020 at 10:22
  • second way is you can add the label name in attribute as mention in above SS. Commented Oct 13, 2020 at 10:22
0

Add this in your en_AU csv translation file

"Review","your translation"

"Details","your translation"

"More Information","your translation"

After run the magento commands

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.