edited title
Link
Amit Bera
  • 75k
  • 20
  • 112
  • 224

Move category descriptdescription from admin panel (Layout Update XML) in Magento 2

Source Link

Move category descript from admin panel (Layout Update XML) in Magento 2

Our customer wanted to show category description after the product list by default, so we added a new container and the following line to the default.xml in out theme:

<move element="category.description" destination="additional-content" />

This works great and moves the category description to the desired end of the page.

However, for a few categories we'd like to show the description before the products again. To do so we added following line to the Layout Update XML under admin panel/catalog/categoreis/category/design:

<move element="category.description" destination="category.view.container" before="-" />

This doesn't seem to have any effect at all.

We already tried adding page- and body-tags, and also do it with a <referenceContainer name="some.parent"> around it. Nothing had any effect.

The only thing we can do with the block right now is deleting it with:

<referenceBlock name="category.description"  remove="true" />

Which means the Layout Update XML itself works but it won't move the block to the desired location

Are there different rules for the xml when using Layout Update XML from admin panel compared to the theme's default.xml? Or anything else we are doing wrong?