
Language 🇺🇸 English
Blogger Installation
Add Live Commenting to Blogger Blogs
This guide adds the FastComments live commenting widget to the post pages of a Blogger blog by editing the blog's theme HTML.
The code is added once to the theme and applies to existing and future posts. Each post gets its own comment thread, identified by the Blogger post ID.
This guide requires a FastComments account. You can create an account here.
Step 1: Open the Theme HTML Editor 
Sign in to Blogger and choose the blog to update.
Before editing the theme, save a copy of it. In the left menu, click Theme. In the top right, click More, then Backup, then Download.
To open the theme HTML editor:
- In the left menu, click
Theme. - Under
My theme, clickMore, thenEdit HTML.
Step 2: Add the FastComments Code to the Post Template 
In the theme code, find the <data:post.body/> tag. Blogger replaces this tag with the content of each post. Paste the following code directly after it:

When you are logged in to FastComments, the snippet contains your tenant ID in place of demo. If it still shows tenantId: 'demo', log in and reload this page, or replace demo with your tenant ID.
Click Save to save the theme.
The code works as follows:
<b:if cond='data:blog.pageType == "item"'>limits the widget to single post pages. Blogger reports a page type ofitemfor post pages,indexfor the home page, andarchivefor archive pages, so the widget is not rendered on pages that list several posts.- The
expr:attributes write the post ID, permalink, and title into the container element.data:post.idis the numeric post ID and is used as theurlId, so the comment thread stays attached to the post if its permalink changes.data:post.urlis stored as the link to the post in notifications and moderation tools. - Blogger themes are XML documents. The
//<![CDATA[and//]]>lines mark the script as character data so the theme parser does not try to read it as markup.
If the theme contains <data:post.body/> more than once, add the code after only one of them. The widget renders into the first element with the id fastcomments-widget on the page.
Open any published post to confirm that the comment widget appears below the post content.
Step 3: Hide Blogger Comments 
Blogger shows its own comment form under each post. To show only the FastComments widget, hide Blogger comments for the whole blog:
- In Blogger, click
Settingsin the left menu. - Under
Comments, setComment locationtoHide.
Hiding Blogger comments does not delete existing comments. Selecting another Comment location option shows them again.
Domain Errors 
The widget may show an authorization error like the following:
This error means the blog's domain has not been added to your FastComments account. Add the full domain the blog is served from, including the subdomain, for example example.blogspot.com. If the blog uses a custom domain, add that domain.
Customization 
Styling and widget options are described in the Customization Documentation.
Options set in code go in the object passed to window.FastCommentsUI in the theme code from Step 2. Options that do not require code can be set in the Widget Customization UI.