cancel
Showing results for 
Search instead for 
Did you mean: 

Moving Category Description

Moving Category Description

Hi All,

 

An issue I have found is trying to move the category description below the product grid on the category pages.

 

Below is the catalog_category_view.xml layout

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="page.main.title" destination="content" before="category.products" />
        <move element="category.description" destination="content" before="category.products" />
        <move element="category.image" destination="page.top" before="breadcrumbs" />
        <move element="category.cms" destination="page.top" before="breadcrumbs" />
        <referenceBlock name="catalog.compare.sidebar" remove="true"/>
        <referenceContainer name="sidebar.additional" remove="true" />
        <referenceContainer name="page.top">
            <block class="Magento\Cms\Block\Block" name="catagory-and-product-page-usp-bar" before="breadcrumbs">
                <arguments>
                    <argument name="block_id" xsi:type="string">catagory-and-product-page-usp-bar</argument>
                </arguments>
            </block>
        </referenceContainer>
        <referenceContainer name="footer">
            <block class="Magento\Cms\Block\Block" name="usp-bar" before="-">
                <arguments>
                    <argument name="block_id" xsi:type="string">usp-bar</argument>
                </arguments>
            </block>
        </referenceContainer>
    </body>
</page>

I have added the below code to the Layout Update XML Section in my category

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="category.description" destination="content" after="category.products" />
    </body>
</page>

However the category description doesn't move at all, Any ideas?