Skip to content

Commit bb54f58

Browse files
committed
MC-2370: Implement full width layout for product
- Add new page layout for product full width
1 parent f073b58 commit bb54f58

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

app/code/Magento/PageBuilder/view/frontend/layouts.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
<layout id="category-full-width">
1313
<label translate="true">Category - Full Width</label>
1414
</layout>
15+
<layout id="product-full-width">
16+
<label translate="true">Product - Full Width</label>
17+
</layout>
1518
</page_layouts>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
9+
<update handle="1column" />
10+
11+
<!-- Ensure the 1column page layout class is present in the DOM -->
12+
<referenceContainer name="page.wrapper" htmlClass="page-wrapper page-layout-1column"/>
13+
14+
<referenceContainer name="page.wrapper">
15+
<container name="product.info.details.wrapper" after="main.content" htmlTag="div" htmlClass="page-main page-main-details">
16+
<container name="product.info.details.wrapper.columns" htmlTag="div" htmlClass="columns">
17+
<container name="product.info.details.wrapper.main" label="Product Details Main Content Container" htmlTag="div" htmlClass="column main"/>
18+
</container>
19+
</container>
20+
<container name="product.info.description.wrapper" after="main.content" before="product.info.details.wrapper" htmlTag="div" htmlClass="page-main-description"/>
21+
</referenceContainer>
22+
23+
<move element="product.info.details" destination="product.info.details.wrapper.main"/>
24+
<move element="product.info.description" destination="product.info.description.wrapper"/>
25+
</layout>

0 commit comments

Comments
 (0)