Hi,

I bought a drupal 8 theme, i tried since 2 days to display disqus comments without succes. I followed the intruction and it works with the defaults drupal themes! I tried this kind of code "content.field_disqus_comments" in my twig files. actually i can display only 2 things.

the label name and the twig file of the module

removed.

Edit: the problem come with jquery-mini.js !

Comments

florentD created an issue. See original summary.

Florent D.’s picture

I found why the Disqus comments are not visible. Each time that i load Jquery mini, disqus disapear!

theme.libaries.yml

js:
      js/jquery.min.js: {}
Florent D.’s picture

Category: Support request » Bug report
Florent D.’s picture

Title: Disqus comments are invisible in my D8 theme. » Disqus comments are invisible in my D8 theme. (Jquery trouble)
Florent D.’s picture

Title: Disqus comments are invisible in my D8 theme. (Jquery trouble) » Disqus comments with Jquery-mini.js troubleshooting.
Issue summary: View changes
Florent D.’s picture

Priority: Normal » Critical
Status: Active » Needs work

Disqus comments are hidden when you load jquery in mytheme.libaries.yml.

theme.libaries.yml

js:
      js/jquery.min.js: {}
Florent D.’s picture

ok, i don't know if it's a correct "TEMPORARY" solution but i loaded the embed.js from disqus as an external js directly in the librarie.yml and the comments are NOW visible.

https://www.drupal.org/docs/8/creating-custom-modules/adding-stylesheets...

 js:
      js/jquery.min.js: {}
      https://mysite.disqus.com/embed.js: { type: external, minified: true }
Florent D.’s picture

don't work with bigpipe core actived too!!! even with my first solution.

gaurav.kapoor’s picture

Status: Needs work » Postponed (maintainer needs more info)
gaurav.kapoor’s picture

Status: Postponed (maintainer needs more info) » Active
gaurav.kapoor’s picture

Version: 8.x-1.x-dev » 2.0.1-alpha4