Skip to content

Commit ed8e0b8

Browse files
committed
MC-2369: Implement full width layout for category
- Use plugin to add default classes for category
1 parent adc7b37 commit ed8e0b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/PageBuilder/Plugin/Result/Page.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ public function beforeRenderResult(
4141
if ($subject->getConfig()->getPageLayout() == 'product-full-width') {
4242
$subject->getConfig()->addBodyClass('page-layout-1column');
4343
}
44+
if ($subject->getConfig()->getPageLayout() == 'category-full-width') {
45+
$subject->getConfig()->addBodyClass('page-layout-2columns-left');
46+
}
4447

4548
return [$response];
4649
}

app/code/Magento/PageBuilder/view/frontend/page_layout/category-full-width.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
-->
88
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
99
<update handle="2columns-left" />
10-
11-
<!-- Ensure the 2columns left page layout class is present in the DOM -->
12-
<referenceContainer name="page.wrapper" htmlClass="page-wrapper page-layout-2columns-left"/>
1310

1411
<container name="columns.top.wrapper" htmlTag="div" htmlClass="page-main"/>
1512
<move element="columns.top" destination="columns.top.wrapper"/>

0 commit comments

Comments
 (0)