Disqus does not appear

Posted in: Newspaper
Post count: 44

Hi,
I manage the website http://www.ciscozine.com and I notice that the disqus plugin works fine on mobile version (I use the tagDiv Mobile Theme), while on pc version use the ‘old comment’ style? Why that?
I know that the disqus plugin is not ‘certified’ by you, but I see that several people use it without problem.

Anyone can help me?
Thanks
Fabio

Post count: 44

I have tried to delete cache without resolving the problem.
I use the disqus official plugin.
Thanks

Post count: 18283

Hello !

Disqus is not a tested plugin. Unfortunately we have not tested this plugin so we cannot offer support for it.

Our support policy: https://forum.tagdiv.com/newspaper-theme-support/

Thank you !

Post count: 44

I notice that if I edit post page template with your editor I receive this error

Warning: require(/home/ciscozine/domains/ciscozine.com/public_html/wp-content/plugins/td-standard-pack/Newspaper): failed to open stream: Success in /home/ciscozine/domains/ciscozine.com/public_html/wp-includes/comment-template.php on line 1527

Fatal error: require(): Failed opening required ‘/home/ciscozine/domains/ciscozine.com/public_html/wp-content/plugins/td-standard-pack/Newspaper/’ (include_path=’.:/usr/local/php72/lib/php’) in /home/ciscozine/domains/ciscozine.com/public_html/wp-includes/comment-template.php on line 1527
There has been a critical error on your website.

Post count: 18283

Hello !

That can be because TagDiv Composer is not compatible with your plugin combinations.

Thank you !

Post count: 11

Hi! Fabio, i saw your website and realized that you finally added DISQUS on your newspaper theme. Can I know how you did it and where? It will be really appreciated 😉

Post count: 44

Simply add this code and change EXAMPLE with your account name:


<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 () {
// Replace PAGE_URL with your page's canonical URL variable
this.page.url = PAGE_URL;

// Replace PAGE_IDENTIFIER with your page's unique identifier variable
this.page.identifier = PAGE_IDENTIFIER;
};
*/

(function() { // REQUIRED CONFIGURATION VARIABLE: EDIT THE SHORTNAME BELOW
var d = document, s = d.createElement('script');

// IMPORTANT: Replace EXAMPLE with your forum shortname!
s.src = 'https://EXAMPLE.disqus.com/embed.js';

s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>
Please enable JavaScript to view the

comments powered by Disqus.

</noscript>

More info here: https://help.disqus.com/en/articles/1717112-universal-embed-code

  • This reply was modified 6 years by Fabio.
Post count: 11

Thanks Fabio for your quick answer, in which part of the template? Single.php?

Post count: 44

You can use a ‘raw html’ module if you use newspaper theme.

Fabio

Post count: 12

@Fabio What variables did you use for:

this.page.url = PAGE_URL;
this.page.identifier = PAGE_IDENTIFIER;

Without setting these, Disqus is displayed on the site, but comments aren’t displayed because they need to be tied to the post/page.

Post count: 12

Are we allowed to use PHP in the tagdiv raw html module?

  • This reply was modified 6 years by hywdotbrk.
Post count: 12

Are we allowed to use PHP in the tagdiv raw html module?

For example can we place this in the raw html:

this.page.url = ‘<?php echo get_permalink(); ?>’;

I’m guessing the answer is NO, since when I do this, it outputs the code, not the PHP echo.

  • This reply was modified 6 years by hywdotbrk.
Post count: 44

Hi,
I no set these variables.
These varibles are useful only when the same page can be reached by different URL.

In my case I have no set it.

fabio

Post count: 12

Fabio, Thanks for the response!

Post count: 14

Thanks!

Post count: 40

Hi,
Is anyone using the plugin with the theme?
I can put the plugin working, but I detected some errors 🙁
Does anyone know / recommend a similar plugin?

Post count: 40

embed.js:41 Uncaught TypeError: Cannot read property ‘appendChild’ of null
at k (embed.js:41)
at Object.l [as isSerif] (embed.js:41)
at h.i.toJSON (embed.js:41)
at Object.c.loadEmbed [as _loadEmbed] (embed.js:43)
at embed.js:43

someone solved this error without having to change the Disqus plugin js?

Post count: 44
Viewing 18 posts - 1 through 18 (of 18 total)
The forum ‘Newspaper’ is closed to new topics and replies.