Cusdis comment system

Hi! I’ve been trying to add cusdis comments to my writefreely blog, however, I haven’t had any success.

The code is as follows:

<div id="cusdis_thread"
  data-host="https://cusdis.com"
  data-app-id="****"
  data-page-id="{{ PAGE_ID }}"
  data-page-url="{{ PAGE_URL }}"
  data-page-title="{{ PAGE_TITLE }}"
></div>
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>

The main issue is that, after the comments box appears, it disappears almost instantly. From what I’ve read, this is because writefreely “sanitizes” the embedded JS code.

Another person was able to implement it using a trick posted on the forum.

This “trick” involves adding the JS code within the customization of the writefreely CSS code, which would look like this:

</style>
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>
<style>

Or something like that. In the tutorial mentioned above, the “addeventlistener” function is used to resolve the conflict. The issue is that I don’t know how to add it to the cusdis code. I would be very grateful if someone could help me with this.

Greetings!

1 Like