[Plugin: Disqus Comment System] DISQUS – issue with Woothemes Canvas
-
Below shows on Woothemes Canvas Slider –
I’ve had issues in the past with cdata showing in odd places in canvas theme. In slider and in a custom page template.Thoughts?
https://jasondaydesign.com2 // <![CDATA[ 3 var disqus_shortname = 'jasondaydesign'; 4 var disqus_domain = 'disqus.com'; 5 (function () { 6 var nodes = document.getElementsByTagName('span'); 7 for (var i = 0, url; i < nodes.length; i++) { 8 if (nodes[i].className.indexOf('dsq-postid') != -1) { 9 nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('rel')); 10 url = nodes[i].parentNode.href.split('#', 1); 11 if (url.length == 1) url = url[0]; 12 else url = url[1] 13 nodes[i].parentNode.href = url + '#disqus_thread'; 14 } 15 } 16 var s = document.createElement('script'); s.async = true; 17 s.type = 'text/javascript'; 18 s.src = 'https://' + disqus_domain + '/forums/' + disqus_shortname + '/count.js'; 19 (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); 20 }()); 21 //]]>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Disqus Comment System] DISQUS – issue with Woothemes Canvas’ is closed to new replies.