Non so se è la sezione corretta. Ho cambiato il tema del mio blog su tumblr e ho copiato dal sito di Disqus il codice per permettere di commentare e condividere il blog su altre piattaforme e su facebook.
Prima non c'erano problemi, con il nuovo tema non riesco a commentare. Qualcuno sa dirmi in cosa ho sbagliato?
L'ho inserito tra i tag <head> e </head> come indicato
codice:<meta name='text:Disqus Shortname' content='iamciuck' />
L'ho messo dopo {/block:Posts}
Non capisco questo passaggiocodice:{block:IfDisqusShortname} <div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = '<iamciuck>'; // Required - Replace example with your forum shortname /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript> blog comments powered by <span class="logo-disqus">Disqus</span> {/block:IfDisqusShortname}
Subito dopo il precedente codice ho inserito questoUpdate the disqus_shortname variable in the embed code provided. If you don't, Disqus won't work.
Select "Update Preview" and then "Save"
Select "Appearance"
Enter your Disqus site shortname in the "Disqus Shortname" field
Non riesco a commentare i miei post.codice:{block:IndexPage}Comments <script type="text/javascript"> var disqus_shortname = '{text:Disqus Shortname}'; (function () { var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = '//' + disqus_shortname + '.disqus.com/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); </script> {/block:IndexPage}

Rispondi quotando