When I create a static page with 2columns-left layout in magento, it has the space of sidebar on the left. How can I put a static block in this sidebar so it can appear in every page with 2 columns?

1 Answer 1


Your XML file code should be:

<referenceContainer name="sidebar.additional">
   <block class="Magento\Cms\Block\Block" name="yourblockid">
            <argument name="block_id" xsi:type="string">yourblockid</argument>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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