WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Disqus - Adds Strange Code to my WordPress Slider....HELP (2 posts)

  1. flgirl
    Member
    Posted 1 year ago #

    I downloaded Disqus and all is going well except one of my sliders in my slideshow shows code:

    // <![CDATA[ var disqus_shortname = 'coralspringstalk'; (function () { var nodes = document.getElementsByTagName('span'); for (var i = 0, url; i < nodes.length; i++) { if (nodes[i].className.indexOf('dsq-postid') != -1) { nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('rel')); url = nodes[i].parentNode.href.split('#', 1); if (url.length == 1) { url = url[0]; } else { url = url[1]; } nodes[i].parentNode.href = url + '#disqus_thread'; } } var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = 'http' + '://' + 'disqus.com/forums/' + disqus_shortname + '/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); //]]>

    How do I get rid of this. I would like to keep Disqus. Does anyone else have this problem or could help?

    CST

  2. flgirl
    Member
    Posted 1 year ago #

    RESOLVED! On another post.....

    mehulved wrote:

    I have run into the same problem too. Tyler's solution worked for me. I have version 2.73 of disqus too.
    @flgirl search on the page for ' Output JavaScript in footer ' and check the box next to it.

Topic Closed

This topic has been closed to new replies.

About this Topic