How to change WooCommerce name and logo in WordPress administration

I think it’s clear that WooCommerce is the most used plugin for creating online stores with WordPress, and the fact that it’s free and offers all the basics you need for an eCommerce helps.

However, especially when you create online stores for clients, you may need to adapt elements of the administration of what will be your client’s online store, removing or changing elements that do not have to be relevant to him.

I am referring to something as basic as replacing references to WooCommerce, and even the logo, in the administration of your client’s e-commerce.

woocommerce default name and logo

How to rename WooCommerce only in the WordPress admin menu

If you just want to change the name of WooCommerce for another name in your menu you have this simple code:

/* Rename WooCommerce menu */
add_action( 'admin_menu', 'rename_woocoomerce', 999 );
function rename_woocoomerce()
{
global $menu;
$woo = rename_woocommerce( 'WooCommerce', $menu );
if( !$woo )
return;
$menu[$woo][0] = 'My eCommerce';
}
function rename_woocommerce( $needle, $haystack )
{
foreach( $haystack as $key => $value )
{
$current_key = $key;
if(
$needle === $value
OR (
is_array( $value )
&& rename_woocommerce( $needle, $value ) !== false
)
)
{
return $current_key;
}
}
return false;
}Code language: PHP (php)

Copy and paste this code wherever you prefer, and after saving the changes you will have successfully renamed the WooCommerce menu.

woocommerce custom name

How to change the name of WooCommerce everywhere

Now, if you prefer to change the name WooCommerce for something else, everywhere it appears, the code would be this one:

/* Rename WooCommerce everywhere */
add_filter('gettext', 'translate_text');
add_filter('ngettext', 'translate_text');
function translate_text($translated) {
$translated = str_ireplace('WooCommerce', 'My eCommerce', $translated);
return $translated;
}Code language: PHP (php)

You can copy and paste it to make it work the way you prefer.

The result is not simply that it will change the name of WooCommerce in the admin menu, but also…

woocommerce custom name everywhere

It will also change on any other screen and text, it is a complete replacement, not just the menu.

woocommerce custom name even in other plugins

How to change the WooCommerce name and icon in the WordPress administration

If you want to go even further and also change the WooCommerce icon for another one, the easiest way is to use plugins.

It can be done through code but you have to modify quite a lot of WooCommerce CSS by default so it is not worth complicating if there are already plugins that make the task easy, don’t you think?

One very easy to use and free is WP Custom Admin Interface. As soon as you install it, go to its settings menu, and locate the WooCommerce menu in the Admin Menu section.

Just click the pencil icon to modify the name and click again to save the changes.

custom admin interface woocommerce settings

Then go to the bottom of the screen/page to save all the settings.

If you also want to change the icon click on the current icon in this same settings screen and it will let you choose between the icons included with the plugin or upload your own.

custom admin interface woocommerce setting to change icon

Again, save the changes.

The result is what you expect: New text and icon for the WooCommerce menu.

woocommerce custom name and logo

As an additional advantage of this plugin is the fact that you can change, add or hide any other menu and aspect of the WordPress administration, which makes it a really useful plugin.

Set the name you want, paste the URL of the icon you want to use, either one uploaded to your media library or an external one, and save the changes. No matter the size of the icon, it will fit perfectly.

How useful was this post?

Click on a smiley to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top