Adding Disqus comments on WordPress, let’s free from spam

Today, I got pretty interesting comment. Here it is.

wordpress spam comment

What a comment is.

Actually I got a lot of spam comments looks like real.

I can tell many comments are posted on my blog from this guy.

So I have decide not to use WordPress Comment system anymore. And transfer to Disqus comments.

Here’s how to.

  1. Go to plugins > Add a new > search for Disqus. Install and activate it.
  2. You need to have Disqus account to set up.Wordpress Disqus plugin setupWordpress Disqus plugin setup
  3. Start to use comment.

But here’s some hidden effort.

First I reinstalled Disqus comment plugin, it didn’t let me reinstall and says “Same directory already exists”. So I opened FTP and go to wp-content > plugins folder and delete disqus-comment-system folder manually.

It didn’t allow me to delete the folder initially. Only after delete inside several child folders first, I could delete the parent folder. If you know the way, it is simple. Otherwise it takes sometime to figure out like me…

I hope this is helpful tip.

My blog is now free from spams. Please comment if you are human.


After enable Disqus comments, “Comments are closed” message is displaying.

To hide this, I installed “remove comments are closed” plugin.

Syntax highlighter for WordPress

While I was posting some code on my blog, the codes are not showing correctly. I post like Javascript, PHP or Shall command as well.

So I have searched for it.

There’s Enlighter plugin which makes codes beautiful.

WordPress Enlighter Plugin

Before enable the plugin, looked plain text. And codes are always messed up. After publish, the new line disappeared and even codes are changed. Like this…

Before applying enlighter plugin

And after plugin enabled.

After applied enlighter plugin

Looks cool, huh?

Also it provides plain text with popup and we can hide line number as well.

While I was searching for syntax highlighter plugin, I found WYSIWYG beautifier as well.

We need two plugins enabled. CodeMirror File Editor and HTML Editor Syntax Highlighter.

codeMirror file editor screen-shot-2016-11-22-at-10-41-51-am

This makes edit text using text field a lot easier.

It shows like this.

syntax highlighter for WordPress

What a colorful world!

Block spam comments on the WordPress post

After my blog launched several people are commented on my blog.
I am happy to get some respond from my reader.

By the way, there’s also unwanted visitors – spam robot or human spammer. This is getting annoyed.

Spams on my WordPress posting

To block these spam comments,  I installed free plugin called WP-SpamShield.

  1. Go to Plugins > Add a new, search for WP-SpamShield. Click Install and make it Active.
    WP-SpamShield plugin install
  2. Config the settings from Settings > WP-Spamshild menu
    WP-SpamShield settings
  3. Configure some settings like log.
    WP-SpamShield general settings

I will see if this helps. Go away flies!

Updates: Looks like this plugin works good. I don’t see spam comments anymore. Recommend to you.

Adding Google Analytics Stats on WordPress

After setup WordPress, I wonder how many users are visiting although it is just started.

I already got two comments, yay!

Here’s way how to add Google analytics code without changing programming. It just need few clicks and couple of minutes.

  1. Add plugin “Insert Headers and Footers”.
    Go to Plugins > Search “insert headers and footers” > Click Install now
  2. Go to Plugins > Installed plugins and Click Activate the plugin. adding-google-analytics-stats-on-wordpress-plugin-enable
  3. Sign up the google analytics and get tracking code.
  4. Go to Settings >Insert Headers and Footers. Paste the tracking code into the footer text area.
  5. Now it is on the website.
    adding-google-analytics-stats-on-wordpress-code2I will see how many visitors today!