Remove recently viewed magento content

Remove recently viewed magento content

August 30, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Remove recently viewed magento content

Removing Recently Viewed Products from Magento Homepage

Are you looking to remove the “Recently Viewed” section from your Magento homepage but don’t know where to start? You’re not alone! This is one of the most common questions we receive from our clients and subscribers at Laravel Company.

Understanding the Problem

The issue lies in the way Magento structures its layout files and block calls. The Recently Viewed products are typically called via the home_product_viewed.phtml template, but finding where this call is made can be a bit tricky.

Many users try to delete the reports.xml file or clear out the contents of home_product_viewed.phtml, only to find that the block remains on the homepage. This is because the call isn’t directly from these files; it’s often part of a larger layout structure defined elsewhere in your Magento installation.

The Correct Approach

To remove Recently Viewed products from your Magento home page, you need to locate and modify the relevant layout XML file. Here are the steps:

  1. Locate your theme’s local.xml or catalog.xml - Magento uses a hierarchical system for its layouts. You should look in app/design/frontend/[Your_Theme]/layout for either local.xml or catalog.xml. These files contain the main layout structures for your store.

  2. Find the ‘home_product_viewed’ block call - Search through these files for something like this:

    <block type="reports/product_viewed" name="product.viewed" as="product_viewed">
        <!-- ... other attributes and children here... -->
    </block>
    
  3. Comment out or remove the block - Once you’ve found it, simply comment out the entire block element by wrapping it in:

    <!--- <block type="reports/product_viewed" name="product.viewed" as="product_viewed"> --><!-- ... rest of code -->
    

Or, for a more permanent solution, you can remove the entire block element entirely.

Why This Works

By commenting out or removing the block call in your layout XML file, you’re telling Magento to no longer include this block on your homepage. This is a cleaner and more sustainable approach than trying to delete files or clear contents, as it leaves the core functionality of your system intact while simply hiding what you don’t want.

Conclusion

Removing Recently Viewed products from your Magento home page requires understanding how Magento’s layout system works at a fundamental level. By locating and modifying the relevant XML file, you can clean up your homepage without touching any core files or breaking other functionality.

Remember, always take backups before making changes to your live site! If you’re unsure about any part of this process, don’t hesitate to reach out to our team at Laravel Company. We specialize in helping businesses like yours optimize their Magento installations for better performance and user experience.

Catalog Themes Configuration Errors

Our network