Reading list Switch to dark mode

    Magento call static block on cms pages

    Updated 2 March 2015

    If You want to call a static block on anu CMS page like homepage so you just follow the steps
    Go To CMS->Pages
    Select Your page

    Go To Design->Layout Update XML
    Reference means the block will call on left right or Content

    <reference name="content">
    <block type="cms/block" name="home-page-block">
    <action method="setBlockId"><block_id>static-block-identifier</block_id></action>
    </block>
    </reference>

    In case if reference already there then just use
    <block type="cms/block" name="home-page-block">
    <action method="setBlockId"><block_id>static-block-identifier</block_id></action>
    </block>

    Enjoy 🙂

    Searching for an experienced
    Magento Company ?
    Find out More
    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home