Open In App

How to Insert Disqus in New Google Sites ?

Improve
Improve
Like Article
Like
Save
Share
Report

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:



Last Updated : 01 Dec, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads