In Magento 2, the product detail page’s default name is “Details”
Let’s say if we want to change this tab name from “Details” to “Product Information”
What we have to do is to override layout xml file from Vendor to theme.
We need to create catalog_product_view.xml file in our custom theme on app/design/frontend/Magemonkeys/mytheme/Magento_Catalog/layout and add below code
1 2 3 4 5 6 7 8 9 10 11 12 |
<?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="product.info.description"> <arguments> <argument name="title" translate="true" xsi:type="string">Product Information</argument> </arguments> </referenceBlock> </referenceBlock> </body> </page> |
Now we need to flush the cache and check-in product detail page.
That’s it.
CONTACT US to get Magento programming solutions by hiring a certified Magento expert.
[crayon-63e099d7f2c76081600124/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.