title: Simple php in footer not working to call some styling and an url
body: <p>I'm using wordpress, and I'm having a hard time with a simple php code I want to add in footer.php to display a "|" symbol with 20px of margin and a url only on the site frontpage:</p>
  
  <pre><code>&lt;?php
  if(is_front_page()){
      echo "&lt;span style='margin: 0 20px;'&gt;|&lt;/span&gt;&lt;a href="http://www.w3schools.com" target='_blank' title='W3C'&gt;Visit W3Schools&lt;/a&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>The following characters are displayed in green by my txt editor as if they were comments:</p>
  
  <pre><code>" target='_blank' title='W3C'&gt;Visit W3Schools&lt;/a&gt;";
  </code></pre>
  
  <p>With the code above, I'm getting a php error:</p>
  
  <blockquote>
    <p>PARSE ERROR: SYNTAX ERROR, UNEXPECTED 'HTTP' (T_STRING), EXPECTING ',' OR ';'</p>
  </blockquote>
  
  <p>This, is working:</p>
  
  <pre><code>&lt;?php if( is_front_page() ) echo '&lt;a href="http://www.w3schools.com" target="_blank"&gt;Visit W3Schools&lt;/a&gt;';?&gt;
  </code></pre>
  
  <p>And this, is working too:</p>
  
  <pre><code>&lt;?php
  if(is_front_page()){
  echo "&lt;span style='margin: 0 20px;'&gt;|&lt;/span&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>But somehow I can't combine these two codes. What am I missing here?</p>