Stop Cove from showing comments on page load
If you don't want Cove comments to display by default on a page, you can use the following modifications in the installation code.
Add a button or link
Add an element to your page that users can click to load comments. I recommend a <button>
.
<button onClick="coveInit()">Load comments</button>
You can style the element however you want, just make sure you include onclick="coveInit()"
on it.
Add the autoLoad
variable
Edit the Cove installation code to include autoLoad: false
.
<script>
const Cove = {
publication: "YOUR_SITE_KEY",
contentId: "{{id}}",
memberId: "{{@member.uuid}}",
memberEmail: "{{@member.email}}",
autoLoad: false
}
</script>
And that's it!