FastComments.com

Add Comments to Ionos Sites

With FastComments we can easily add live commenting to any site built with Ionos.

Note that this tutorial requires a FastComments account. It's recommended that you sign up first and then come back here. You can create an account here.

Step 1: Add a Contact Form Internal Link

First, we're going to add a contact form which FastComments will replace.

To do this, open the site editor, and click Add Section on the desired page.

Then, go to Content -> Contact -> Contact Form on the left, as shown:

Add Contact Form
Add Contact Form

Next, we need to tell FastComments to replace our form. Click on the default form title:

Set Form Title
Set Form Title

We'll set the title to FastComments Goes Here. It's very important that the casing and spacing is the same, or else it won't work, so we recommend you copy this text and paste it in.

When done, it should appear as follows:

Done Setting Title
Done Setting Title

That's the end of step one!

Step 2: Add FastComments.com Code Internal Link

Next we're going to add the FastComments widget code to your site. This code will search for all forms with the title FastComments Goes Here and replace it with FastComments.

So let's go to Settings in the bottom left of the site editor:

Open Settings
Open Settings

Open the Custom Head Code section:

Open Custom Head Code
Open Custom Head Code

For Ionos we need a special version of the FastComments widget code. Code snippets from other tutorials will not work.

Now copy the following code:

Ionos FastComments Snippet
Copy Copy
1
2<script src="https://cdn.fastcomments.com/js/embed-v2.min.js"></script>
3<script>
4 (function () {
5 let loaded = false;
6 let interval = null;
7
8 function attemptLoad() {
9 const nodes = document.querySelectorAll('h2');
10
11 nodes.forEach(function (node) {
12 if (node.innerText && node.innerText.trim() === 'FastComments Goes Here') {
13 // we get the element that is not full width
14 const target = node.parentNode.parentNode.parentNode.parentNode.parentNode;
15 target.innerHTML = '';
16 FastCommentsUI(target, {
17 tenantId: "demo"
18 });
19 interval && clearInterval(interval);
20 loaded = true;
21 }
22 });
23 }
24
25 attemptLoad();
26 if (!loaded) {
27 interval = setInterval(attemptLoad, 300);
28 }
29 })();
30</script>
31

...and paste it in as shown:

Paste and Save
Paste and Save

Step 3: Publish Internal Link

Now we just have to publish our site and we're done.

Go back to the content editor by clicking Content in the top left:

Go back to Content
Go back to Content

Then we can publish!

Publish!
Publish!

That's it! FastComments should be live on your site. You should see something similar to this:

Done!
Done!

Success Internal Link

Nice work! You've added live commenting to your Ionos site.

If you've run into a permission denied error, or would like to customize FastComments, read on.

Customization Internal Link

FastComments is designed to be customized to match your site.

If you'd like to add custom styling, or tweak configuration, Checkout our Customization Documentation to learn how.