TypeError: $ is not a function

Does TypeError: $ is not a function when calling a jQuery function in WordPress give you cramps? This error usually arises when some jQuery script contains

In WordPress, $ is not used as a shortcut for jQuery. WordPress runs their own scripting before any other script is run. Releasing $ variable prevents collision with other libraries…

WordPress : Improve quality of resized images

Add the below code snippet in your theme’s functions.php to improve quality of your resized images.

Replace WordPress default login logo with site logo

While we all love wordpress, we feel having our site’s personal logo on login page would look much better 😉 adding the below code snippet in your theme’s functions.php will change the wordpress login screen logo with your site’s logo.

How to create Woocommerce order programatically

Creating a woocommerce order programmatically was bit of a pain until version 2.2 which brings us very easy and efficient way creating order. Here is how you would go about it with woocommerce version 2.2 or later :