Replace menu permalink/hyperlink with only menu name/slug
First of all – I tryed to make this work to changing nav-menu-template.php Never edit a core file! This is always a bad idea. At best, you will lose your changes when core updates. To do this, you can use the nav_menu_link_attributes filter to modify the href attribute. This filter will be applied to each … Read more