create new container in theme

i wanna remove footer container and create new footer but it does not work. this is my code

     <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceBlock name="logo">
        <arguments>
            <argument name="logo_file" xsi:type="string">image/logo.png</argument>
        </arguments>
    </referenceBlock>

    <referenceBlock name="report.bugs" remove="true"/>

    <referenceContainer name="footer" remove="true"/>
    <container name="footer" htmlTag="div"/>
    <referenceContainer name="footer">
            <block class="_\_\Block\Account\Verify" name="verify_mobile_phone" template="_-_::account/verify_form.phtml"/>
    </referenceContainer>
</body>

Solutions

please assign another name and check it

like

<referenceContainer name="footer-inner">
Tags: Magento 2.x / Theme

Similar questions

Why do I get an exception when trying to append a block to a container in a parent theme?
I'm following an exercise in the ebook 'No-Frills-Magento-2-Layout' by Alan Storm (excellent book so far btw) and am coming across a slight issue for which I am not sure what I am doing wrong. I am trying to create a new theme with the intention of adding a new block to the catalog_category_view layout template. I have the following code structure:...
How to add an action on a new button added on a backend form container
I've successfully added a new button on a form container (near New, Save, Save and Continue) in backend. I tried to use ajax... first adding JS code in adminhtml/layout/default. But the js code I write does not recognize require or define statements, so I don't have access to requirejs/jquery. How can I properly include javascript in admin or how c...
Magento 2: New container not showing
I'm trying to add a new container to a layout (extending Magento Blank) but it's not rendering in HTML. I added the following to: app/design/frontend/VENDOR/MYTHEME/Magento_Theme/layout/default.xml I cleaned the cache and refreshed the page and then looked at the source code rendered by my browser but a div with a class of "mike-container" doesn't ...
Magento 2 - Add a new container
I'm trying to add a new container according to the Magento 2 documentation, but it isn't working. Here is what I'm trying: I'm not seeing the markup anywhere after I refresh. Caching is off too.
Magento 2: How to move block inside a new container in layout XML?
I'm trying to wrap the .product-info-main div on the product page inside a new container div (.product-info-container). After following the Magento layout instructions, it's not behaving as expected. Here's what I have in catalog_product_view.xml right now: The layout doesn't change at all. However, if I remove the <referenceContainer> level,...
adding a new container to root
I'm trying to add a new container into root. I've tried placing the code to empty.xml, default.xml, 1column.xml. I've checked with changing another element in the same file if the file is loaded and parsed. But whatever I do I just can't add the container. This is the code: So it will add the html id "header" to the "header.container" which appears...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.