Skip to content
Related Articles

Related Articles

How to Insert Disqus in New Google Sites ?
  • Last Updated : 01 Dec, 2020

Disqus is a blog comment hosting service for the website. It’s a very useful and interactive tool to make a website alive. It’s an American company who is maintaining this service. To add this service in your Google site page fellow this article.

  • Now, select embed option from the insert panel and then go to embed code division of the dialogue box appeared.

  • Paste the code copied and now edit it. Remove the comments and add your site’s URL and Identifier in the code.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Page Title</title>
    <div id="disqus_thread"></div>
    <script>
        var disqus_config = function () {
  
            // Replace PAGE_URL with your page's 
            // canonical URL variable
            this.page.url = PAGE_URL;
  
            // Replace PAGE_IDENTIFIER with your 
            // page's unique identifier variable
            this.page.identifier = PAGE_IDENTIFIER;
        };
        (function () {
  
            // REQUIRED CONFIGURATION VARIABLE: 
            // EDIT THE SHORTNAME BELOW
            var d = document, s = d.createElement('script');
  
            // IMPORTANT: Replace EXAMPLE with
            // your forum shortname!
            s.src = 'https://EXAMPLE.disqus.com/embed.js';
            s.setAttribute('data-timestamp', +new Date());
            (d.head || d.body).appendChild(s);
        })();
    </script>
    <noscript>Please enable JavaScript to view the
        <a href="https://disqus.com/?ref_noscript" rel="nofollow">
            comments powered by Disqus.
        </a>
    </noscript>
</head>
  
<body>
    <h2>Welcome To GFG</h2>
      
<p>Default code has been loaded into the Editor.</p>
  
</body>
  
</html>
  • Now hit next button then insert the code. The website will look like:


Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.




My Personal Notes arrow_drop_up
Recommended Articles
Page :