title: How to replace instance of WordPress home_url hyperlink via functions.php
body: <p>The WordPress theme I'm using applies a home_url() link to the header logo and I'd like to change it to network_home_url()... Easy enough if I am editing the theme files but I'd like to do it via the child theme functions.php file so I can keep all my tweaks separate from the main theme (it's a multisite installation).</p>
  
  <p>This is what I'm working with (albeit simplified):</p>
  
  <pre><code>&lt;div class="logo"&gt;
      &lt;a href="&lt;?php echo home_url(); ?&gt;"&gt;
          &lt;img src="/image.png"&gt;
      &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've tried the following, which worked but resulted in a site-wide change (including WP settings, etc) which in turn broke all the permalinks:</p>
  
  <pre><code>add_filter('home_url', 'change_logo_link');
  function change_logo_link($output) {
      return network_home_url();
  }
  </code></pre>
  
  <p>Is there a way I can target that specific hyperlink without editing the parent theme files? I don't think the home_url function is used anywhere else in the theme so it doesn't need to be too specific, I just want to avoid affecting the WP settings.</p>
  
  <p>Thanks in advance!!!</p>