- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2019
01:47 AM
06-18-2019
01:47 AM
catalog_product_view.xml
I am trying to edit the view of the products page
in catalog_product_view.xml there are a lot of referenceBlock tags, how do I know which file it is referencing?
Labels:
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2019
02:12 AM
06-18-2019
02:12 AM
Re: catalog_product_view.xml
Hi@alecom2go,
what change do you want in xml file? if you are using custom theme then share xml file as well.
so I can tell your better?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2019
02:21 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2019
02:44 AM
06-18-2019
02:44 AM
Re: catalog_product_view.xml
you can get hint from referenceblock name:
example:
<referenceBlock name="page.main.title">
you can use move if you want to move any block. for reference, you can check following url:
vendor/magento/theme-frontend-luma/Magento_Catalog/layout/ catalog_product_view.xml
But make sure you should override the default xml file into theme, otherwise it will be replaced when you upgrade magento.
I hope it will help you!