FastComments.com

Add Live Commenting to Typeflo.io Blogs

What This Guide Covers

This guide covers setting up live commenting with FastComments on Typeflo.io blogs.

1. Find Code Input Internal Link

To add FastComments to your Typeflo.io blog, first navigate to your blog's dashboard and click on Settings in the left sidebar.

Click Settings
Navigate to Settings in Typeflo.io

Next, click on the Custom Code tab at the top of the settings page.

Click Custom Code Tab
Click Custom Code Tab in Typeflo.io Settings

You'll see three sections for adding custom code: Header, Body, and Footer. We'll use the Footer section for FastComments.

2. Insert Code Internal Link

In the Footer section of the Custom Code tab, paste the following code:

Typeflo.io Live Commenting Code Snippet
Copy Copy
1
2<script src="https://cdn.fastcomments.com/js/embed-v2.min.js" async></script>
3<script>
4 (function () {
5 function load() {
6 let target = null;
7 let lastInstance;
8 if (document.querySelector('.fastcomments-widget')) {
9 setTimeout(load, 1000);
10 return;
11 }
12 if (lastInstance) {
13 lastInstance.destroy();
14 }
15 if (window.FastCommentsUI) {
16 const newElement = document.createElement('div');
17 newElement.classList.add('fastcomments-widget');
18 const subscribeSection = document.querySelector('.nc-SectionSubscribe2');
19 if (subscribeSection) {
20 subscribeSection.parentNode.insertBefore(newElement, subscribeSection);
21 target = newElement;
22 } else {
23 const fullWidthSection = document.querySelector('.container.w-full');
24 if (fullWidthSection) {
25 fullWidthSection.prepend(newElement);
26 target = newElement;
27 }
28 }
29 }
30 if (target) {
31 lastInstance = FastCommentsUI(target, {
32 "tenantId": "demo"
33 });
34 }
35 setTimeout(load, 1000);
36 }
37
38 load();
39 })();
40</script>
41
Paste Code in Footer Section
Paste FastComments Code in Footer Section

After pasting the code, click the Save button to apply your changes.

Note: This code includes logic to dynamically place the FastComments widget in the optimal location on your Typeflo.io blog posts. Other code snippets will not work properly with Typeflo.io's layout.

Remember to replace 'demo' with your actual FastComments tenant ID after signing up. If you're logged in to FastComments.com, it should already be replaced.

Success Internal Link

Nice work! You've added live commenting to your Typeflo.io blog.

FastComments will now appear on all your blog posts, allowing your readers to engage in discussions.

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 blog's design.

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

For Typeflo.io blogs, you can add custom CSS styles in the same Custom Code section where you added the FastComments script.