Skip to content

Commit f127615

Browse files
committed
MC-2371: Implement full width layout for CMS pages
- Ensure page-layout-1column class is present on body for CMS full width pages
1 parent a0e825d commit f127615

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/PageBuilder/Plugin/Result

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public function beforeRenderResult(
2323
ResponseInterface $response
2424
) : array {
2525
// Apply the updated layout handles classes to the body when using our full width variants
26-
if ($subject->getConfig()->getPageLayout() == 'product-full-width') {
26+
if ($subject->getConfig()->getPageLayout() == 'product-full-width'
27+
|| $subject->getConfig()->getPageLayout() == 'cms-full-width'
28+
) {
2729
$subject->getConfig()->addBodyClass('page-layout-1column');
2830
}
2931
if ($subject->getConfig()->getPageLayout() == 'category-full-width') {

0 commit comments

Comments
 (0)