1

How to call custom block in header any help will be appreciated .

 <referenceBlock name="logo">
     <block class="Magento\Cms\Block\Block" name="help">
        <arguments>
            <argument name="help" xsi:type="string">promo</argument>
        </arguments>
       </block>               
 </referenceBlock>
1

You must have to get argument name="block_id"

<referenceBlock name="logo">
    <block class="Magento\Cms\Block\Block" name="help">
        <arguments>
            <argument name="block_id" xsi:type="string">promo</argument>
        </arguments>
    </block>   
</referenceBlock>
  • does not call this code – Monu Kumar Aug 22 '17 at 12:24
  • Have you create promo static block? – Rakesh Jesadiya Aug 22 '17 at 12:26
  • i just create in backend content block i want to call it after logo in default.xml – Monu Kumar Aug 22 '17 at 12:28
  • you have to pass <argument name="block_id" xsi:type="string">promo</argument> in your query – Rakesh Jesadiya Aug 22 '17 at 12:29
  • which in custom block page or default.xml – Monu Kumar Aug 22 '17 at 12:32

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.