How to change My Wishlist text in top links in magento

How to change My Wishlist text in top links in magento

July 25, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to change My Wishlist text in top links in magento

Changing “My Wishlist” Text to “Wishlist” in Magento

As a senior developer, I often receive queries from clients who want to make minor customizations like changing the “My Wishlist” text to simply “Wishlist” in their Magento store’s top links menu. While this seems straightforward, the process involves understanding how layout files and XML work together.

Why Change the Text?

Changing the wishlist link text is a common request for several reasons:

  1. Branding: You may want your store to have a consistent look and feel across all elements.
  2. Simplicity: Shorter text saves space in limited real estate like mobile menus.
  3. SEO: Although minor, every bit of relevant text helps search engines understand your site’s structure.

The Incorrect Approach

You mentioned trying to change the text directly in magentotest\app\design\frontend\default\magentotest\layout\wishlist.xml. While this file is part of the layout system, it doesn’t control all wishlist links. This approach would only modify the wishlist page’s layout, not the top menu.

The Correct Method

To change the “My Wishlist” text site-wide, you’ll need to modify the top.links block in your theme’s XML layout files. Here’s a step-by-step guide:

  1. Locate Your Theme’s Layout Files: Navigate to magentotest\app\design\frontend\yourtheme. Replace “yourtheme” with the name of your current active theme.

  2. Find the top.links Block: Look for an XML file named something like catalog_product_view.xml or wishlist.xml. Open this file and find a line containing <block type="wishlist/view" name="top.links.wishlist" before="-">.

  3. Update the Text: Within that block, you’ll see a line like <action method="setLabel"><label>My Wishlist</label></action>. Change “My Wishlist” to just “Wishlist”.

<block type="wishlist/view" name="top.links.wishlist" before="-">
    <action method="setLabel"><label>Wishlist</label></action>
</block>
  1. Save and Deploy: Save the file, then flush Magento’s cache to see the changes:
php bin/magento cache:flush

Best Practices

Remember, never modify core files directly as it can cause issues during updates. Instead, always override or copy these files into your theme directory.

If you’re a non-technical user, consider using Magento’s built-in UI customization tools found in the admin panel under Content > Configuration. However, for site-wide changes like this, you’ll typically need access to the filesystem and basic XML knowledge.

Conclusion

Changing the “My Wishlist” text to “Wishlist” is a common request that requires understanding Magento’s layout system. By locating your theme’s appropriate XML file and updating the top.links block, you can achieve this customization without core modifications.

For more advanced Magento customizations or if you’re looking for professional development services, I recommend checking out our offerings at LaravelCompany.com. Our team of experienced Magento developers can handle everything from minor text changes to complex module integrations.

Catalog Themes SEO CLI

Our network