Add another profile link not working
Thanks to Kevin in the comments section. It was a plugin called Kadence Slider causing the problem. This plugin and the Kadence themes are not compatible with CiviCRM.