0

I'm using Magetique template for Magento and I'm changing the 'listing-layout-1.xml' file.

I need it to look like this enter image description here

Although, right now it's looking like this: enter image description here

And the title isn't even displaying.

Here's my code:

   <?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="page.main.title" destination="columns.top" before="category.image" />
        <move element="category.image" destination="columns.top" after="page.main.title" before="category.products.list" />
        <referenceBlock name="category.products.list">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Magento_Catalog::product/list_layout_1.phtml</argument>
            </action>
        </referenceBlock>
        <referenceBlock name="search_result_list">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Magento_Catalog::product/list_layout_1.phtml</argument>
            </action>
        </referenceBlock>
    </body>
</page>

1 Answer 1

1

Changes below :

 <move element="page.main.title" destination="columns.top" before="category.image" />
        <move element="category.image" destination="columns.top" after="page.main.title" before="category.products.list" />

to

<move element="category.image" destination="columns.top" before="page.main.title"  />
<move element="page.main.title" destination="columns.top" before="category.products.list"/> /> 
6
  • This doesn't work pleas see here: imgur.com/a/l1OjU Apr 12, 2018 at 11:20
  • The description has moved below image, which is good, but it's not within the container and the title hasn't displayed. Apr 12, 2018 at 11:22
  • can u please tell me category.products.list page container name?Also remove destination="columns.top" and see what happen?
    – Amit Bera
    Apr 12, 2018 at 11:55
  • Where would I find this? Apr 12, 2018 at 15:16
  • it too complex to tell what is reference container name of category.products.list
    – Amit Bera
    Apr 12, 2018 at 15:44

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.