Change the Menu label

⚠️ Code snippets might not be compatible with the latest version of your theme. Always use a child theme to customize your theme, and test your code on a staging website before migrating to production.

The Hamburger Menu or the 3-bar Menu of the Customizr theme has the default label ‘Menu’ next to it.

To change the default label to custom text, just paste this function into your child-theme’s functions.php file.

 

/************************************************************************/ 
/* Change default menu label 'Menu' to 'Custom Word' 
/************************************************************************/
add_filter('tc_sidenav_menu_button_view','my_menu_label');
function my_menu_label($content){
   return str_replace('Menu','Custom Word',$content); /* Change to suit your needs */
}

 

4 thoughts on “Change the Menu label”

Comments are closed.