Wednesday, 2 November 2016

Magento call newsletter in sidebar

Add below code in <body> tag in module-newsletter/view/frontend/layout/default.xml :-


You can use sidebar.main instead of sidebar.additional  for show in top of sidebar :-

<referenceContainer name="sidebar.additional">
            <block class="Magento\Newsletter\Block\Subscribe" name="form.subscribe" as="subscribe" after="wishlist_sidebar" template="subscribe.phtml"/>
        </referenceContainer>

No comments:

Post a Comment