Site language can also be changed at the Disqus Admin > Settings > General page.
Screenshot
After about an hour of research I found this to be the easiest way.
Thanks for your reply but you didn’t read my first post, I know how to change the language of disqus. I have to set specific language for pages and this is possible with that code.
I don’t understand where insert that code.
Hello vrrebels,
Sorry for the late reply. You only have 2 languages? Are you familiar with PHP and JavaScript?
This should be the code but in which php file and where to put it ?
<?php if ( get_locale() == 'it_IT') : ?>
<script type="text/javascript">
var disqus_config = function () {
this.language = "it";
</script>
<?php endif; ?>
Hi there,
Could you share the PHP file name you had to edit?
Thank you very much!
Hi misterblacktea,
You can put that in dcl-comments.php file which is inside public folder.
Hi Joel,
Thanks! Is that via FTP looking at your web-server? I have difficulties finding the specific document you mention…
Is there a way to edit the document via plug-in editor in the WordPress web-interface?
Yes. You can edit via plugin editor, but I DO NOT recommend editing that way. If you miss even a single dot or comma, you may break your site.
Try to connect via FTP. If you need help, please contact me through the plugin website with test credentials.
Anyway, I have noted this as a feature for next update of the plugin.
The file may be located at
public_html/wp-content/plugins/disqus-conditional-load/public/