Back home
Mark Shust

Written by Mark Shust, a Certified Magento Developer, Architect & Instructor in Cleveland, Ohio.
Follow me @markshust

Controlling how static blocks are displayed in Magento

#cms   #layout   #magento   #magento1   #xml   

June 29, 2011   ·   1 min read

To disable a static block globally, go to CMS > Static Blocks > Select One > set Status = Disabled > Save

To control the disable of static blocks on various pages, to go CMS > Widgets > Select One > Reference “Layout Updates” section

To remove a specific block for a specific page, go to CMS > Pages > Manage Content > Select One

Click the currently published Revision number on the initial page > Click the Design tab on the left

In the Layout XML section paste in the appropriate block of code dependent on the block you want to remove, for example to unset everything from the left sidebar:

<reference name="left">
    <action method="unsetChildren"></action>
</reference>

To unset a certain static block (named nameofblock) from the right sidebar:

<reference name="right">
    <action method="unsetChild">
        <name>name_of_block</name>
    </action>
</reference>

You can find the id of the static block by going to CMS > Static Blocks and looking up the value in the column Identifier.