Engine23
blogBannerImage
By Engine23

Magento - Getting rid of the sidebar Compare Products

Some times, your theme does not need the compare products in the sidebar for a 2 column layout.

Here is the xml you add to your app/desing/PACKAGENAME/THEMEFOLDER/layout/local.xml

<?xml version="1.0" encoding="UTF-8"?>
<layout>
<default>
<span ><reference name="right">
<span ><action method="unsetChild"><name>catalog.compare.sidebar</name></action>
</reference>

</default>
</layout>

Make sure you refresh your caches and you should see that go away.

Here it is before the updated xml

Before xml update to remove product sidebar

Here it is after the updated xml and refresh caches

After xml update to remove product sidebar