
Language 🇺🇸 English
Add Comments to a Specific Page
Add Comments to Blog Posts
Add Comments to All Pages
Duda Next Steps
Add Live Commenting to Duda Sites
This guide adds the FastComments live commenting widget to a site built with Duda, using Duda's HTML widget.
The instructions are divided into three sections:
Duda lists custom code, including the HTML widget, as available on Team plans and higher.
Duda's documentation describes comments on Duda sites through third-party widgets, the Disqus Comments widget and the Facebook Comments widget. If your site uses one of these, see Remove Disqus or Facebook Comments.
This tutorial requires a FastComments account. You can create an account here.
Add Comments to a Specific Page 
Open the page in the Duda editor.
In the side panel, click Add, then click Elements. Search for HTML, then drag the HTML widget into the row or column where the comments should appear. Duda recommends placing custom code in its own column or container, so the container can be deleted if the code causes a problem.
To open the widget's content editor, right-click the widget and select Edit Content. In flex mode or Editor 2.0, open the content editor from the widget's floating menu.
Paste the following code into the content editor:
Run 
If you are logged in to FastComments, the snippet above contains your tenant ID. If the tenant ID in the snippet is demo, log in and reload this page, or replace demo with your tenant ID.
Publish the site. The comment widget appears on the published page, with a comment thread for that page.
Add Comments to a Blog Post 
Duda blog posts are edited in Post Mode. Changes made to a post in Post Mode apply only to that post, so the HTML widget is added to each post that should have comments.
- In the side panel, click
Blog. - Click
Manage Posts. - Select the post and click its
Editicon to open it in Post Mode. - Drag the HTML widget to the bottom of the post, below the end of the text.
- Right-click the widget and select
Edit Content. In flex mode or Editor 2.0, open the content editor from the widget's floating menu.
Paste the following code into the content editor:
Run 
Republish the post. Changes to a post are not live until the post is republished.
Each post has its own comment thread. The same code can be pasted into every post.
Add Comments to All Pages 
An HTML widget placed in the header or footer of a Duda site appears on all pages of the site.
Open the site in the Duda editor. In the side panel, click Add, then click Elements. Search for HTML, then drag the HTML widget into a row or column of the site footer.
Right-click the widget and select Edit Content. In flex mode or Editor 2.0, open the content editor from the widget's floating menu. Paste the following code into the content editor:
Run 
Publish the site. Each page has its own comment thread, because the widget identifies the thread by the page URL.
The widget also appears on pages where comments are not wanted, such as a contact page. To show comments only on selected pages, use the specific page method instead.
Remove Disqus or Facebook Comments 
If a page or blog post already has a Disqus Comments widget or a Facebook Comments widget, delete that widget from the page or post and republish it, so that visitors see one comment section.
Duda's documentation states that Facebook deprecated its Comments widget on February 10, 2026. Sites that still contain the Facebook Comments widget continue to work, but the widget no longer displays content, and Duda recommends removing it.
Testing Custom Code 
Duda's custom code guidelines recommend creating a backup of the site before adding custom code, and testing code on a separate test page first.
Duda's preview runs over HTTPS. The FastComments code loads its script over HTTPS, so it is compatible with the preview and the editor.
To preview a page outside of the editor's iframe, change the editor link to the following form, where xxxxx is the site identifier from your editor link:

Comment threads are identified by page URL. A thread created from a preview URL is separate from the thread on the published page, so check the final result on the published site.
Duda Support does not troubleshoot custom code. For problems with the comment widget, contact FastComments support.
Domain Errors 
The widget may show an authorization error like the following:
This error means the domain of the page is not in the list of domains allowed for your FastComments account.
Add the domain your Duda site is published to on the domain configuration page of your account.
Customization 
Styling and configuration options for the widget are described in the Customization Documentation.
Configuration options are added to the object in the code pasted into the HTML widget. Republish the page or post after changing the code.