PHP

Remove query strings

Any of you ever make any CSS or Javascript changes to your WordPress website but it doesn’t show immediately on your browser unless you do a very hard refresh or clear cache? Here’s how you can avoid that: Just add the code below to your functions.php. To optimise the load time of the website, a…

My experience with migrating a staging site to a live site

If there are hundreds of users who browse the live WordPress website, and you need to do a major update to the website, what should you do? The answer is clone the website into a staging environment, update and then test the usability of the entire website again, make sure the usability is smooth and…

JS

Autoptimise and Flatsome theme

Today I had an issue with Autoptimize and Flatsome theme on a multisite. The images on the website stopped showing when I deactivate Autoptimize. Then I found out that it was a Javascript issue. So, I added these 2 lines to my header.php to fix the issue: <script src=”http://code.jquery.com/jquery-latest.min.js” type=”text/javascript”></script> <script src=”//cdn.jsdelivr.net/jquery.color-animation/1/mainfile”></script> Hope I can…

PHP

How to add SMS notifications to WooCommerce orders

You get order notification emails when you buy things online. However, not many people check their email. Therefore, to keep your customers happy, you should send SMS notifications to them. To do this, I have created a WordPress plugin called Woocommerce SMS Notification. I am using WC Marketplace and BulkSMS.my as my SMS service provider….