This code creates a comments widget with the following features:
A clean, modern design with subtle shadows and rounded corners
Existing comments display with:
Author name
Timestamp
Comment text
A comment form with:
Name input field
Comment textarea
Submit button
Basic validation to ensure both fields are filled
Responsive design that works on different screen sizes
Visual feedback on button hover
Automatic timestamp generation for new comments
New comments are added dynamically without page refresh
To use this widget:
Copy the entire code into an HTML file
Open it in a web browser
Enter a name and comment in the form fields
Click “Post Comment” to see the new comment appear
The comments are stored in the DOM and will reset when the page is refreshed. To make comments persistent, you’d need to add backend storage (which isn’t included in this example).
You can customize the styling by modifying the CSS in the <style> section, and adjust the functionality by modifying the JavaScript in the <script> section.
Could I trouble you for how to: 1. Make Montserrat font consistent throughout, including Your Name, Write Your Comment Here, and Post Comment button, 2. Post Comment button background color #3d9aab instead of the bright blue.
Also, I notice our date/time formats don’t match. Prefer mm-dd-yyyy and hh:mm (no seconds) in military time format - is that possible?
Hey @backhome84, thanks for sharing, it looks really curious!
The code does allow you to create a comments section and even add real comments, but it requires a lot of work to fine-tune it into a full-featured comments widget. Key aspects like comment storage (they need to be saved somewhere to stay on your site), moderation, spam filters, and a stylish UI — all of these are things you’ll have to handle yourself.
To save you the hassle, we’re working on a ready-to-use comments widget that will be stylish and functional right out of the box
It’s still in the Design stage right now, but we’ll update you here once it moves to development.
Really … this company just needs to update there widget in the blog or make a new one for comments. As you and everyone can see it shouldn’t be to complicated. Just my thoughts…
I think it really depends — there are businesses that want to feature real comments from their clients directly on their website, keeping everything in one place.
Having a comments section might also build trust as it gives users a platform to speak their mind, share honest opinions, and explore other reviews and feedback. Additionally, user-generated content (i.e. comments from clients) can contribute positively to SEO and improve page rankings.
There’s no one-size-fits-all solution, of course, but I believe many users could benefit from the Comments widget. Feel free to disagree!
I agree with @Helga. There are lots of reasons that Comments sections are still relevant to many of us. Please think about this: How would YouTubers feel if their Comments section was taken away? That’s what has effectively happened to bloggers, if you blog anywhere but WordPress (I blog on Kajabi).
Comments is where all the interaction, questions, and over time, community-building goes down. Maybe someone who has a forum doesn’t need Comments but most of us don’t have forums. And they seem more prone to moderation troubles, privacy concerns, etc. than a Comments section imho.
I like how Comments are public - and you can usually set it to post approval if it becomes a concern.
" * Privacy concerns & GDPR* make users hesitant to share data or create accounts."* You bring up a good point here - this is why many of us don’t use Disqus and are hoping for a Comments feature from Elfsight. I don’t want commenters to have to create an account, just to simply enter their name, website (not required), and comment/question. Easy peasy.
Sorry for the novel Thanks for asking the question! Just because one doesn’t use a feature personally doesn’t mean it’s not super valuable to others. Best, E
Glad to say that our devs are working on the Comments widget now. I’ve moved your comment to the related thread, where we’ll keep you posted on any progress
Thanks for your input! I get that comments can build trust and foster interactivity. But from my perspective, a comment section today is about as useful as a fax machine in 2025: In a world that’s faster, more direct, and often visual, the effort required to maintain a comment section just doesn’t seem worth it. Moderation, spam filters, and constant maintenance take up a lot of time, and often, the value of the interactions is limited.
There are much more effective ways to encourage interaction and improve SEO – like social media, reviews on external platforms, or interactive widgets. They offer the same functionality without the hassle, and often deliver even more engagement.
However, if you manage to create a ‘Helga-Bot’ for community management that handles all the comments, then you might just convince me! Until then, I feel like comment sections are kind of like fax machines in a world full of WhatsApp messages – nice relics from the past, but a bit outdated.
Well, I think we’re talking about different use cases here. I definitely agree that improving a site from various aspects is important, and external platforms do play a significant role in strengthening your brand. However, it seems to me that enabling comments on your site could be yet another way to enhance engagement, that’s it
Maybe you are right, but I know a lot of people in a range from 18 to 25+ and none of them are on social media. It might be surprising considering it is 2025, but for younger generations, social media is not a need. And in my case this is my target. My customers are between 18-35 and I’m also young and trust me, the last hing I wanna do is using my real social media accounts to post, comment or anything. It is annoying to be required to log in for asking a simple question or commenting. And this is why a simple comment widget makes a huge difference. You can set it up to be anonymous and everyone will be fine, fast, safe, private etc. or just require for a basic security stuff like an email, which is something everybody from young to old people have access to. In my case, people need to comment even to make a review or question. Yeah, it is obvious for us that we would use a contact section instead, or a FAQ, but times are different and they don’t read it even having it in front of their eyes. People will always prefer something fast and easy and they find it by commenting. They ask everything there and they prefer a real and genuine interaction by seeing the owner of the website replying to their comments, instead of getting private stuff or sending them to use social media. It might be stupid but that’s how it works nowadays and I see it myself everyday. Right now I’m using another comment widget that happily makes the work smooth, but I’ll definitely get the widget when they develop it here cause they make amazing widgets. Like the sales notifications! A really great great win!
At the moment, I can’t say for sure if structured data will be included in the first release, but I know that the devs are discussing this possibility. If everything goes smoothly, I believe we may well expect it!
Thank you for your interest, @A113, happy to have you join our community!
Yes, the widget is now in development, meaning that all design work has been done and approved! Although this widget might seem simple, it’s a reeeally complicated project with lots of nuances:
This widget’s packed with tons of UI elements, and we’re taking our time to craft them just right so it looks great and feels smooth to use.
There’s a pretty tricky API behind it, managing comments, reactions, and threads. We need to make sure that everything’s working smoothly and feels modern.
Storing all data is another huge point. We’re thinking ahead to make sure it’s set up for future upgrades, since we’re always looking to improve our widgets.
Authorization is super important too — we know how much safe and secure logins matter when you’re jumping into discussions, so we’re putting extra attention into that feature.
And customization — we want this widget to be flexible and tackle as many of your challenges as possible, so we’re working through all the popular use cases to make it just right.
But our developers confirmed that the work is in full swing now, and they are doing everything they can to release the Comments widget as soon as possible
Thats great news!
Thanks for making the complexity behind it transparent - good to see that you guys take the time to make it right. Have a nice weekend ahead!