cancel
Showing results for 
Search instead for 
Did you mean: 

catalog_product_view.xml

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?

3 REPLIES 3

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?

Re: catalog_product_view.xml

I am using luma theme as parent

 

catalog_product_view is in

 

vendor / magento / module-catalog / view / frontendlayout / catalog_product_view.xml

Re: catalog_product_view.xml

@alecom2go 

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!