K
K
Konstantin2020-08-28 09:04:37
Disqus
Konstantin, 2020-08-28 09:04:37

How to properly set up disqus?

5f489de9f0b0c324343323.png
How to embed disqus normally?

Here is the code itself (modified by me) code:

<div id="disqus_thread"></div>
<script>

/**
*  RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
*  LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
    
var disqus_config = function () {
  this.page.url = '{{content.absolute_url}}';  // Replace PAGE_URL with your page's canonical URL variable
  this.page.identifier = '{{content_id}}'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};

(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://firefallsite.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sashabeep, 2020-08-29
@sashabeep

For example, this.page.url = window.location
this.page.identifier will be erased altogether. Will cling to page addresses

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question