Skip to main content
added 244 characters in body
Source Link
andy jones
  • 1.4k
  • 2
  • 22
  • 50

Im pretty sure you don't need to do it into 'root' how you have done it.

I would think it is like so.

<referenceContainer name="page.wrapper">
    <container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container" after="header.container" />
</referenceContainer>

Add this into:

Vender/theme/Magento_Theme/layout/default.xml

Or for root it might be:

<container name="root">
        <container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container" after="header.container" />
    </container>

Im pretty sure you don't need to do it into 'root' how you have done it.

I would think it is like so.

<referenceContainer name="page.wrapper">
    <container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container" after="header.container" />
</referenceContainer>

Add this into:

Vender/theme/Magento_Theme/layout/default.xml

Im pretty sure you don't need to do it into 'root' how you have done it.

I would think it is like so.

<referenceContainer name="page.wrapper">
    <container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container" after="header.container" />
</referenceContainer>

Add this into:

Vender/theme/Magento_Theme/layout/default.xml

Or for root it might be:

<container name="root">
        <container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container" after="header.container" />
    </container>
Misunderstood what was originally wanted, this will add a container into the main section and after the desired location.
Source Link
andy jones
  • 1.4k
  • 2
  • 22
  • 50

Im pretty sure you don't need to do it into 'root' how you have done it.

I would think it is like so.

<?xml<referenceContainer version="1name="page.0" ?>wrapper">
        <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<container xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configurationname="some.xsd">
            <body>
           container" as="someContainer" label="Some Container" htmlTag="div" <referenceContainerhtmlClass="some-container" name="headerafter="header.container">
                    <container name="header_mobile" as="header_mobile" htmlTag="div"container" htmlClass="header_mobile"/>
                </referenceContainer>

Add this into:

Vender/theme/Magento_Theme/layout/default.xml

Im pretty sure you don't need to do it into 'root' how you have done it.

I would think it is like so.

<?xml version="1.0" ?>
        <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <body>
                <referenceContainer name="header.container">
                    <container name="header_mobile" as="header_mobile" htmlTag="div" htmlClass="header_mobile"/>
                </referenceContainer>

Add this into:

Vender/theme/Magento_Theme/layout/default.xml

Im pretty sure you don't need to do it into 'root' how you have done it.

I would think it is like so.

<referenceContainer name="page.wrapper">
    <container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container" after="header.container" />
</referenceContainer>

Add this into:

Vender/theme/Magento_Theme/layout/default.xml

Source Link
andy jones
  • 1.4k
  • 2
  • 22
  • 50

Im pretty sure you don't need to do it into 'root' how you have done it.

I would think it is like so.

<?xml version="1.0" ?>
        <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <body>
                <referenceContainer name="header.container">
                    <container name="header_mobile" as="header_mobile" htmlTag="div" htmlClass="header_mobile"/>
                </referenceContainer>

Add this into:

Vender/theme/Magento_Theme/layout/default.xml