Using this code in the category XML update works to use my customlist.phtml file instead of the default list.phtml file.

But the problem is the category title and description are repositioned to the bottom of the page. I need them to be at the default position which should be at the top of the listed products.. what am i missing..

<referenceContainer name="content">
<referenceBlock name="category.products.list">
    <block name="product_list" class="Magento\Catalog\Block\Product\ListProduct">
            <argument name="template" xsi:type="string">Magento_Catalog::product/customlist.phtml</argument>

1 Answer 1


Try below code in you .XML file.

    <referenceBlock name="category.products.list" as="product_list" template="Magento_Catalog::product/customlist.phtml">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.