0

Could any one please tell how to override Magento2's core phtml templates from custom theme.

I have done as follows":

Copied

app/code/Magento/Catalog/view/frontend/templates/product/list.phtml

To

app/design/frontend/MyModule/mytheme/Magento_Catalog/templates/product/list.phtml

Please help me further

How should the xml layout file be?

UPDATED:

I added as:

<referenceBlock name="product_list_toolbar">
        <action method="setTemplate">
            <argument name="template" xsi:type="string">Vendor_Module::product/list.phtml</argument>
        </action>
    </referenceBlock>

which is calling my phtml file..IS there no need of layout file?

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.