-
Notifications
You must be signed in to change notification settings - Fork 46
Frequently Asked Questions
- What is my Disqus
shortname
? - I want to modify the functionality of Disqus services.
- I'm having issues getting the components to load on localhost.
- The comment count isn't updating when there's a new comment.
- My website supports light/dark themes, how can I get the comment section to adapt when the theme changes?
- What languages are supported by the
language
prop?
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.
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.
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 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.
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.