Self-Hosted Commento vs Built-In WordPress Comments

Since I got my performance in order on this website. I decided to put the comments in order and initially thought that I would go with Disqus, but was quickly discouraged when I saw that they automatically add affiliate links and ads to your site. No thanks! You are able to turn off the affiliate links, but there are other reasons to consider, Enter Commento:


  • Responsive (ONLY 11 KB of JavaScript and CSS)
  • Privacy-focused
  • Social Logins (Google, Twitter, GitHub & GitLab)
  • Hosted ($5 and up) OR Self-hosted
  • Less load on your sever
  • Docker Support
  • More features vs built-in WordPress Comments
  • Embed comment forms anywhere with tiny HTML script
  • Mobile-responsive
  • Analytics


  • No WordPress Plug-in
  • Something else to manage (if you choose to self-host)
  • Setup (if you choose to self-host)
  • No Native SSL Support (requires extra work to add-on)

One other really awesome thing about Commento is that you are given the choice to either pay to have it hosted or host it yourself!

If you decided to have them host it for you or self-host, either way, you can import comments from Disqus into Commento. So right now, if you’re coming from WP comments, you may need to import your WordPress comments into Disqus first and, then export your comments, etc.

Commento + Docker + SSL

I found an awesome repository for getting up and running with self-hosting, Commento. Raul uses Let’s Encrypt for SSL/TLS, along with NGINX.

GitHub: Commento easy-install with Docker Compose and SSL

I had trouble getting NGIX to properly load the SSL certificate files and found I had to change the permission of both files to:

sudo chmod 0640 /etc/letsencrypt/live/
sudo chmod 0640 /etc/letsencrypt/live/

That got me up and running.

Place the code

<script defer src=""></script>
<div id="commento"></div>

Getting It Working With a Child Theme

I duplicated content-single.php into my child theme directory (GeneratePress) and pasted the Commento code right after this line:

</div><!-- .inside-article -->


</article><!-- #post-## -->

This puts the comment form on only your post pages.

OR use a plugin!

You will need to modify /includes/enqueue-scripts.php to your domain.

Final Thoughts

I had a little snafu with receiving the confirmation e-mail once I had setup Commento and there wasn’t an option to request another to confirm my e-mail so I had to reset the docker containers.

I removed the restart parameter from the docker config file and ran the commend, docker-compose down to shut them down politely. Then, docker volume prune to delete all the Docker volumes on the server and last docker-compose up –build.

By Graydon Schwartz

Find out more about Graydon on the About Me page.

Share to...