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.
3 Answers
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>
-
Thanks HImanshu, I need to rename 'Reviews' tab as well. How can that be done?– NehaCommented Oct 15, 2020 at 9:38
-
-
Thanks himanshu, but it didn't work. Tried couple of other options too as told by madani but that too didn't go well.– NehaCommented 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
- you can change the tabs name in products attribute code description,meta_description, and short_description
- Otherwise you can change your tabs name in your translation csv file.
-
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.– NehaCommented 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?– NehaCommented 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.– NehaCommented 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
Add this in your en_AU csv translation file
"Review","your translation"
"Details","your translation"
"More Information","your translation"
After run the magento commands