Categorías
Tecnología

Comentarios propios vs. Comentarios incorporados en WordPress

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:

Pros

  • 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
  • Análisis

Cons

  • 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 Commento.io 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/commento.mydomain.com/fullchain.pem
sudo chmod 0640 /etc/letsencrypt/live/commento.mydomain.com/privkey.pem

That got me up and running.

Place the code

<script defer src="https://commento.mydomain.com/js/commento.js"></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 -->

INSERT YOUR CODE HERE

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

This puts the comment form on only your post pages.

OR use a plugin!

https://github.com/zgordon/wp-commento

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

Reflexiones finales

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.

Agradecimiento especial

TESMAT en el Supercargador de Tesla

TESMAT

TESMAT podría ser el colchón adecuado para su próxima siesta en el Supercargador, su viaje de acampada en coche o el regalo perfecto para su propietario favorito del Tesla Model 3/Y. Puedes usar mi código de cupón para ahorrar en tu compra.

Más información:

logo luminar neo para fondos claros actualizado | graydonschwartz.com

Luminar Neo

Utilice el botón de abajo y no dude en utilizar el código de descuento (GRAYDON) para darse un descuento dulce en el momento de la compra en Luminar:

Es posible que gane una pequeña comisión por mi aprobación, recomendación, testimonios y/o enlaces a productos o servicios enlazados arriba. Tu compra me ayuda a ofrecerte más fotografías, guías de viaje y más viajes alrededor del mundo.

Por Graydon Schwartz

Más información sobre Graydon en el Sobre mí página.