0

If I need to add a new full width section between the main element and the footer element, is there a way to declare something in the theme's default.xml that places it before or after a container?

1
  • 1
    Try with CSS , that's simplest way Aug 23 '17 at 3:25
0

You can try

<referenceContainer name="content">
    <block class="Myvendor\Mymodule\Block\Myblock" name="unique_name" template="Myvendor_Mymodule::mysection.phtml" after="-" />
</referenceContainer>

Or

<referenceContainer name="after.body.end">
            <block class="Myvendor\Mymodule\Block\Myblock" name="unique_name" template="Myvendor_Mymodule::mysection.phtml" />
    </referenceContainer>

You can use css for custom styles. Hope this helps.

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.