Skip to content

Frequently Asked Questions

Brett Stevenson edited this page May 4, 2020 · 2 revisions

Table of Contents

  1. What is my Disqus shortname?
  2. I want to modify the functionality of Disqus services.
  3. I'm having issues getting the components to load on localhost.
  4. The comment count isn't updating when there's a new comment.
  5. My website supports light/dark themes, how can I get the comment section to adapt when the theme changes?
  6. What languages are supported by the language prop?

What is my Disqus shortname?

A shortname is the unique identifier assigned to a Disqus website. Your Disqus shortname for your website can be found on the Disqus settings page.

I want to modify the functionality of Disqus services.

This package is not capable of augmenting the functionality of Disqus services, but rather simplifies the process of integrating these services into React applications.
If you would like to submit a bug report or feature request to Disqus, I would suggest creating a discussion on DiscussDisqus.

I'm having issues getting the components to load on localhost.

If you're getting errors while loading the components locally, you want to make sure that the URL that is being passed in the config.url is using the production domain for your website, as it will not be able to find a thread on your localhost.
Additionally, this URL should match the Website URL that you set in the Disqus settings.

The comment count isn't updating when there's a new comment.

The CommentCount component relies on a Disqus script that is currently being pretty heavily cached, which can cause an unexpected delay before the count updates.

My website supports light/dark themes, how can I get the comment section to adapt when the theme changes?

While the Disqus universal embed script does not support dynamically assigning themes, you can achieve this functionality by setting the Color scheme to Auto in the Disqus settings and passing the current theme variable to the DiscussionEmbed component.
This way when the website theme switches, the component will recognize the change in props and update the component. At which time, the current theme will be detected and the theme of the comment section will be updated accordingly.

What languages are supported by the language prop?

A full list of the languages that are supported by Disqus can be found in the Disqus project on Transifex and you can find the language code for each supported language in the Transifex Language List.

Note: Depending on the completeness of the translation for a given language and the release of language support from Disqus, the strings displayed on discussion thread UI may not be completely translated.