I am running a Wordpress theme with the following link hard coded to the template. How do I change it depending on the current domain the browser is at. Please note that I am using sub-domains.
From(https://www.foo.com/):
<a class="btn" href="https://armoires.foo.com/_Login/Login.php">
to(https://www.foo.ch/):
<a class="btn" href="https://ch.foo.com/_Login/Login.php">