A short explanation of bind and .this in JavaScript

We’ve noticed that many people which start to learn JavaScript are having difficulties when they try to understand certain concepts.

Understanding how .this works it is one of these concepts.

This is usually explained better in conjunction with bind function.

Read more


How to automatically insert AdSense ads in your WordPress posts

We’re using AdSense on some of our websites and it is pretty easy to add the ads code to WordPress pages or posts.

When you write a post or page all you have to do is to paste the AdSense code exactly where you want. The ads will appear on your page or post.

Read more

How to hide ‘PHP Update Required’ widget on WordPress Dashboard

When you login to your WordPress dashboard, you land on a page with different boxes ( widgets ) like “At a Glance”, “Activity”, “Quick Draft”,  “WordPress Events and News” or “Welcome”.

You can have other widgets, depending on your installed plugins or even server configuration.

Read more

Hide price and add to cart for WooCommerce

How to hide WooCommerce price and add to cart button for a certain product in your online shop? Probably you’ve wondered about this if you landed on this page. Or some of you might wonder why would you want to do this for a WooCommerce product. We want to sell the products, right?

Read more

How to integrate a custom PHP file with WordPress

You can use WordPress functionality in a custom PHP script. A few lines of code on top of the PHP fie will do the trick. Consequently the script will be able to use WP global object variables like $wpdb.

Read more

How to fix “Uncaught TypeError: Cannot read property ‘indexOf’ of undefined” in WordPress

We had this error “Uncaught TypeError: Cannot read property ‘indexOf’ of undefined” in WordPress a few times. First time when we encountered this, it was a little scary. If something does not work after a WordPress or plugin update or maybe because the plugins were not updated for a long time then you can check the Inspector > Console.

Read more

How to add a new column to WooCommerce orders table

What is WC orders table?

WooCommerce provides a table with all the orders in WP dashboard area under WooCommerce > Orders.

By default that table has 7 columns: Order, Date, Status, Billing, Ship to, Total and Actions.

If you want to add a new column to this table in WordPress admin area, this is possible by adding custom PHP code to your functions.php file which it is in your theme folder.

Read more

Understanding the Bootstrap 4 framework CSS grid system

Bootstrap is the world’s most popular framework for building responsive, mobile-first sites and with the new version of it it has become even more interesting to all of us. Bootstrap 4 has a better grid system than version 3 in my opinion. Actually, some time ago I wrote an article about Bootstrap 3 grid system in which I have explained it in more detail. It’s the time to have a look at Bootstrap 4 grid system which brings pretty cool new things. Yalla. Let’s go! 🙂

Read more


Redirect user to different thank you pages based on the chosen payment method in WooCommerce checkout

WooCommerce is a great e-commerce platform for WordPress. I’ve been working with this for such a long time and it is a reliable plugin-in for sure.

One of my customers needed to redirect the buyer to specific different thank you pages on his WordPress website which uses WooCommerce. The redirect should have happened after the checkout process. During the checkout the buyer had multiple payment options. The buyer should have been redirected to a specific thank you page depending on the chosen payment gateway.

Read more

How to set up SMTP on a WordPress Media Temple Grid website

Send emails from your WordPress website hosted on MT without any problem and anytime!

I will show you how to set up SMTP on a WordPress website hosted on Media Temple Grid. I’m doing this because I have realized that the information provided by MT is not very clear and I had to set up this step by step and test it multiple times until I managed to make WordPress to send emails using SMTP. At some point, since the SMTP data provided by MT was not working, I had to use Gmail SMTP.

Read more