How to remove right sidebar in magento 1.9

How to remove right sidebar in magento 1.9

July 7, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to remove right sidebar in magento 1.9

Removing the Right Sidebar in Magento 1.9: A Comprehensive Guide

When you first install Magento 1.9, it comes preconfigured with several sidebars that may not align with your desired layout. In this guide, we’ll walk you through the process of removing unwanted sidebars, specifically focusing on how to eliminate the “Recently Viewed Products” and “Compare Products” sidebars.

Understanding the Default Layout Structure

Magento 1.9 uses a hierarchical structure for defining page layouts. The core layout files are located in:

/app/design/frontend/base/default/layout

However, it’s recommended to create your own theme and make changes there. This approach ensures that your customizations won’t be overwritten during updates.

Creating Your Own Theme

Begin by creating a new folder for your theme under the frontend directory:

/app/design/frontend/your_vendor_name/your_theme_name

Create necessary folders like layout, template, and skin. This will serve as the base for all layout modifications.

Locating the Sidebar Definitions

The sidebar definitions are primarily found in the following XML files within your custom theme directory:

  • catalog.xml: Contains product-specific layouts.
  • default.xml: The general layout file for your theme.

For our example, we’re interested in the catalog.xml file. Open it for editing.

Removing the Sidebar References

In your catalog.xml file, look for any block definitions related to the sidebars you want to remove. For the “Recently Viewed Products” and “Compare Products” sidebars, you’ll find these lines:

<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<block type="reports/product_viewed" after="-" template="report/viewed.phtml"/>

To remove these sidebars, simply comment out or delete the corresponding lines. Your file should look like this:

<!-- <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/> -->
<!-- <block type="reports/product_viewed" after="-" template="report/viewed.phtml"/> -->

Clearing the Cache

After making these changes, Magento might not immediately reflect your updates. This is due to its caching mechanism.

To clear the cache:

  1. Log in to your Magento admin panel.
  2. Navigate to System > Cache Management.
  3. Select all cache types.
  4. Click “Flush Cache(s) from Storage”.

Verifying Your Changes

After clearing the cache, refresh your frontend pages that include product listings (like category pages or search results). The unwanted sidebars should now be completely removed.

Remember, this is a basic guide for removing default Magento sidebars. For more complex layout modifications or advanced customizations, consider consulting LaravelCompany’s Magento Development Services, where our team of experienced developers can provide tailored solutions to meet your specific business needs.

Conclusion

In this guide, we’ve demonstrated how to remove sidebars in Magento 1.9 using a straightforward approach that involves creating a custom theme and editing the layout files directly. Always ensure you’re working with a backup before making any significant changes, as Magento’s core files are tightly coupled and modifications should be handled carefully.

If you find yourself stuck or needing more advanced solutions for your e-commerce platform, don’t hesitate to reach out to our team at LaravelCompany. We’re here to help you optimize your Magento store for maximum performance and user experience.

Magento 1 Catalog API Themes

Our network