0

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">
        <arguments>
            <argument name="template" xsi:type="string">Magento_Catalog::product/customlist.phtml</argument>
        </arguments>
    </block>
</referenceBlock>

1 Answer 1

0

Try below code in you .XML file.

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

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.