How to remove container block from cms page for particular layout. I have created new layout and apply on cms page but not able to customize it.
Below my custom layout code:
app/design/frontend/CleverSoft/moza/Magento_Theme
layouts.xml
<page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
<layout id="fullpage">
<label translate="true">Full Page Layout</label>
</layout>
</page_layouts>
app/design/frontend/CleverSoft/moza/Magento_Theme/page_layout
fullpagelayout.xml
<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
<update handle="1column"/>
</layout>
It is possible to set block outside the main container?
Best Answer
Check Magento documentation guide on layout https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/layouts/layout-override.html
Remove container block from cms page
You can create custom layout
layouts.xml
app/design/frontend/CleverSoft/moza/Magento_Theme/page_layout
fullpage.xml
if you want to further customize/override these layout
1column.xml
orempty.xml
or2column-left
or2column-right.xml
or3column.xml
copy from
vendor/magento/module-theme/view/base/page-layout/empty.xml
.to
app/design/frontend/CleverSoft/moza/Magento_Theme/page_layout
copy from
to
app/design/frontend/CleverSoft/moza/Magento_Theme/page_layout
Yes you can set block outside the main container check following path
app/design/frontend/CleverSoft/moza/Magento_Theme/layout/default.xml
Let's assume this is your block
Here's how you set your block after main container