Magento - removing wishlist link in 1.4.2?

Magento - removing wishlist link in 1.4.2?

July 30, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento - removing wishlist link in 1.4.2?

Magento has made significant changes in version 1.4.2 regarding how extensions are loaded into the page layout. This includes the wishlist link, which was previously added using a simple action tag but has now been moved to a more complex block system.

Understanding the Change

In earlier versions of Magento (like 1.3 and prior), you could easily remove the wishlist link by overriding the wishlist.xml file in your local.xml layout configuration. The wishlist link was added using an <action> tag with a method name of “addWishlistLink”. This made it straightforward to remove via:

<remove name="wishlist_link"/>

However, Magento 1.4.2 has shifted away from this model. Now, the wishlist link is added using an <action> tag that calls a method named “addLinkBlock”, and it specifies a blockName attribute of ‘wishlist_link’. This change was made to improve the modularity of the layout system.

To remove the wishlist link in this new version, you cannot simply use the <remove> tag as before. Instead, you need to understand how the block is being added and where it’s being placed.

First, let’s examine the layout instruction in question:

<action method="addLinkBlock">
    <blockName>wishlist_link</blockName>
</action>

This tells Magento to add a link to the wishlist from the “wishlist_link” block type. To remove this, we need to stop the addLinkBlock action from being called and prevent the block from being loaded.

Overriding the Layout

In your local.xml file, you can override the entire layout update section where this action is placed. This will allow you to completely replace the instruction set with your own version that doesn’t include the wishlist link addition.

Here’s how you might do it:

<layout>
    <default>
        <!-- Replace everything inside these tags -->
        <reference name="header">
            <block type="page/html" name="top.links" as="topLinks"/>
                <action method="addLinkBlock"><blockName>wishlist_link</blockName></action>  <!-- Remove this line -->
            </block>
        </reference>
    </default>
</layout>

In the code above, I’ve commented out the wishlist link addition action. This stops Magento from adding the wishlist link to your site’s header.

Other Solutions

If you don’t want to override the entire layout update section, there are other ways to handle this. One approach is to create a custom module that removes the block before it’s loaded.

To do this, you would need to create an event-observer pattern in your module. You’d observe the core_block_abstract_to_html_before event and check if the block name being rendered is ‘wishlist_link’. If it is, stop the rendering process using $result = false.

Conclusion

The change in Magento 1.4.2 has made removing the wishlist link a bit more complex than before. It requires a deeper understanding of the layout update process and how blocks are managed.

For most users, overriding the entire layout update section in local.xml is a straightforward solution that won’t require additional coding or module creation. Simply comment out the line responsible for adding the wishlist link block.

However, if you prefer a more modular approach or need to manage this logic across multiple themes or stores, creating a custom event-observer module can be a better choice.

Remember, when dealing with layout updates in Magento, always backup your files first and test changes thoroughly before deploying them to a production environment. Changes in the layout update XML can have significant impacts on the appearance of your site.

For more information on advanced Magento layout management, consider checking out Laravel Company’s comprehensive guide.

Magento 1 Extensions Themes Configuration

Our network