Skip to main content
deleted 20 characters in body
Source Link
Magento Learner
  • 2.1k
  • 3
  • 41
  • 90

I have this catalog_product_view.xml in my theme layout folder.

I want to edit the html code for this part all-products-left-wrapper,

<referenceContainer name="content">
    <container name="all-products-left-wrapper" label="All Products Left Wrapper" as="all-products-left-wrapper" htmlTag="div" htmlClass="all-products-left-wrapper" before="-">    
    </container>
    <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.media.image" template="product/view/mediaimage.phtml" />  
</referenceContainer>

But I have searched all over my Magento folders, I simply can't find the phtml file for this?

But on the front-end, when I look at the source code from browser, I do see this is generated <div class="all-products-left-wrapper">. So how does Magento 2 convertrender it's .xml file from layout folder intofiles to html?

I have this catalog_product_view.xml in my theme layout folder.

I want to edit the html code for this part all-products-left-wrapper,

<referenceContainer name="content">
    <container name="all-products-left-wrapper" label="All Products Left Wrapper" as="all-products-left-wrapper" htmlTag="div" htmlClass="all-products-left-wrapper" before="-">    
    </container>
    <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.media.image" template="product/view/mediaimage.phtml" />  
</referenceContainer>

But I have searched all over my Magento folders, I simply can't find the phtml file for this?

But on the front-end, when I look at the source code from browser, I do see this is generated <div class="all-products-left-wrapper">. So how does Magento 2 convert .xml file from layout folder into html?

I have this catalog_product_view.xml in my theme layout folder.

I want to edit the html code for this part all-products-left-wrapper,

<referenceContainer name="content">
    <container name="all-products-left-wrapper" label="All Products Left Wrapper" as="all-products-left-wrapper" htmlTag="div" htmlClass="all-products-left-wrapper" before="-">    
    </container>
    <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.media.image" template="product/view/mediaimage.phtml" />  
</referenceContainer>

But I have searched all over my Magento folders, I simply can't find the phtml file for this?

But on the front-end, when I look at the source code from browser, I do see this is generated <div class="all-products-left-wrapper">. So how does Magento 2 render it's .xml files to html?

edited title
Link
Magento Learner
  • 2.1k
  • 3
  • 41
  • 90

Magento 2 How is Layout.xml rendered to html generated from layout filesfile

Source Link
Magento Learner
  • 2.1k
  • 3
  • 41
  • 90

Magento 2 How is html generated from layout files

I have this catalog_product_view.xml in my theme layout folder.

I want to edit the html code for this part all-products-left-wrapper,

<referenceContainer name="content">
    <container name="all-products-left-wrapper" label="All Products Left Wrapper" as="all-products-left-wrapper" htmlTag="div" htmlClass="all-products-left-wrapper" before="-">    
    </container>
    <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.media.image" template="product/view/mediaimage.phtml" />  
</referenceContainer>

But I have searched all over my Magento folders, I simply can't find the phtml file for this?

But on the front-end, when I look at the source code from browser, I do see this is generated <div class="all-products-left-wrapper">. So how does Magento 2 convert .xml file from layout folder into html?