I’ve been following the following instructions closely:
but I can’t seem to install GraphComment. I’m using the Dawn theme and I have it open in Atom. I’m editing the file called comment.hbs (where it says “If you want to embed comments, this is a good place to do it!”.
However, when I save the edited file and upload it to my site, nothing happens, no comments appear.
Here is the code … does anyone see what I’m doing wrong? Thanks so much!
{{#if post.access}}
<div class="comment container small">
<div id="graphcomment"></div>
<script type="text/javascript">
/* - - - CONFIGURATION VARIABLES - - - */
var __semio__params = {
graphcommentId: "Rabbit-Holes", // make sure the id is yours
behaviour: {
// HIGHLY RECOMMENDED
// uid: "...", // uniq identifer for the comments thread on your page (ex: your page id)
},
// configure your variables here
}
/* - - - DON'T EDIT BELOW THIS LINE - - - */
function __semio__onload() {
__semio__gc_graphlogin(__semio__params)
}
(function() {
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
gc.onload = __semio__onload; gc.defer = true; gc.src = 'https://devintegration.graphcomment.com/gc_graphlogin.js?' + Date.now();
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
})();
</script>
</div>
{{/if}}
If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:
I was able to implement it fairly easily, however since their last update. The new code they provide does not work on my site. I rolled back to the old one while I troubleshoot the issue.