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