Magento – XML Layout Updates to Remove Magento Sidebar Components

0
34
views

Sidebar Layout Update Components – Removal

Advertisement

Here is a list of some useful code to use Magento’s layout updates to remove some of the default sidebar components. You can apply this code through the backend admin layout update sections within the CMS pages, Category pages or Product pages, or insert it into layout xml files for your theme.

Entire Left Column

<remove name="left"/>

Entire Right Column

<remove name="right"/>

Remove All Components of Right Column

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

Remove All Components of Left Column

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

Remove Compare Products From Left and Right

<remove name="catalog.compare.sidebar" />

Remove Left Permanent Callout

<reference name="left">
    <action method="unsetChild"><name>left.permanent.callout</name></action>
</reference>

Remove Right Side Components – Compare, Permanent Callout, Paypal Logo, Poll

<reference name="right">
    <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
    <action method="unsetChild"><name>right.permanent.callout</name></action>
    <action method="unsetChild"><name>paypal.partner.right.logo</name></action>
    <action method="unsetChild"><name>right.poll</name></action>
</reference>