Added container in default.xml within footer container

<referenceContainer name="footer-container">
            <container name="em.maxwidth.content" htmlTag="div" htmlClass="em-maxwidth-content" before="-"/>
            <container name="footer" as="footer" label="Page Footer" htmlTag="div" htmlClass="footer_second">
                <container name="als-footer-container" label="Als Footer Container" htmlTag="div" htmlClass="container" before="-"> //add container 

after that create a block and assign block and that block assign to widget with a new container.

But it did not add second level footer.


This is because your container is empty, when a container is empty it is ignored.

Add a block that outputs something and your container should display.

Also, als-footer-container does not have a closing tag.

  • Hi I have assigned a block to this container and i have also closed this container – Sarvesh Tiwari Aug 8 '18 at 14:26

You can add an extra container in footer using the following piece of XML.

<referenceContainer name="footer">
    <container name="secondfooter" label="Second Footer" htmlTag="div" htmlClass="secondfooter content">
        <block class="Magento\Framework\View\Element\Template" name="custom_footer_block" template="Magento_Theme::custom_footer.phtml" />
  • i tried this but its not working for me – Sarvesh Tiwari Aug 10 '18 at 9:30
  • It worked on my end. Please double check your filename and other data. – Dinesh Yadav Aug 10 '18 at 11:39
  • let's me check once again – Sarvesh Tiwari Aug 10 '18 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.