title: Add wordpress url in href of js script
body: <p>I've got code:</p>
  <pre><code>if ($('.header').width() &lt; 767 ){
    $(&quot;.header__search&quot;).html('&lt;a href=&quot;/cart&quot; class=&quot;d-block xxxd&quot;&gt;&lt;img src=&quot;/wp-content/themes/img/cart.png&quot; width=&quot;16px&quot; /&gt;&lt;span class=&quot;badge badge-warning&quot; id=&quot;lblCartCount&quot;&gt;'+$('#barba-wrapper &gt; div &gt; header &gt; div.header__main &gt; div &gt; div.header__user &gt; ul &gt; li:nth-child(2) &gt; a &gt; span').text()+'&lt;/span&gt;&lt;/a&gt;');
  });
  </code></pre>
  <p>I need to replace url in href <code>/cart</code>  to default wordpress :</p>
  <pre><code>&lt;?php echo wc_get_cart_url() ?&gt;
  </code></pre>
  <p>How to put it?</p>