title: How to disable Facebook Comments from showing up on Blog Home Page and Category Pages?
body: <p>I'm currently working with Facebook Comments on a Squarespace.com website. Squarespace gives us the ability to add HTML code blocks, so implementing the code for FB Comments is easy.</p>
  
  <p>The problem is Squarespace displays this code on the Blog Home Page and Category/Tag Pages, as well as the Full Blog Post. I only want the Comments to appear on the Full Blog Post.</p>
  
  <p>I can use the following code to tell Squarespace to look for the Post's PERMALINK and display only when on that page, but the Script no longer works with Facebook's Comments (it used to).</p>
  
  <p><strong>Works:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  &lt;!--
  var docURL = document.URL;
  if (docURL == "%PERMALINK%")
  {
  document.write('&lt;p&gt;This is test text.&lt;/p&gt;');
  }
  --&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Does Not Work:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  &lt;!--
  var docURL = document.URL;
  if (docURL == "%PERMALINK%")
  {
  document.write('&lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;sc'+'ript&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#appId=153773241379548&amp;xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));&lt;/sc'+'ript&gt;
  
  &lt;div class="fb-like" data-href="%PERMALINK%" data-send="false" data-layout="button_count" data-width="200" data-show-faces="false"&gt;&lt;/div&gt;');
  }
  --&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Using the Facebook code, nothing shows up at all.
  Thanks for your help!</p>