Adding Custom Fields to Products in WooCommerce

As you can on the screenshot above we will see how to add custom fields to the product edition page. To do that we will be working on the functions.php file of your theme’s folder only. The right hooks The first step is to hook an action to woocommerce_product_options_general_product_data. The function linked to this hook will be responsible for the new fields display. […]

How to make WordPress website load faster -2 ?

STEP-3: Specify image dimensions and serve scaled images Specifying a width and height for all images allows for faster rendering by eliminating the need for unnecessary reflows and repaints. Don’t use width and height specifications to scale images on the fly. If an image file is actually 60 x 60 pixels, don’t set the dimensions to 30 x 30 in the […]

How to remove query string from static Resources?

Wondering how to remove query string from static resources? Just place these code in your functions.php file. This code will remove query strings from static resources like CSS & JS files, and will improve your speed scores in services like PageSpeed, YSlow, Pingdoom and GTmetrix. Resources with a “?” or “&” in the URL are not cached by some proxy […]

How to make WordPress website load faster?

If you are reading this post, then you are probably looking for tips how to improve site performance, especially WordPress sites. In this post, I will mainly focus on some the ways, that can be used to make your WordPress website load faster. Before, diving into actual ways, lets see how your website is made up of. Any website contains: […]

How to Empty WordPress thrash every after 7 days?

So, Wondering How to Empty WordPress thrash every after 7 days? Here is the solution for it. Since version 2.9, WordPress has featured a trash bin. This trash bin contains any posts, pages, attachments, and comments that have been deleted. This allows you to recover any content that you might have accidentally deleted in WordPress. By default, the trash bin […]