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 […]
Most of the time attackers and spammers tends to attack the site by adding spammy comment to your site. It is important that we keep eye on ping back and spammy comments. One thing that I always like to add to my theme as developer is keep track of the comments. If the comments length […]
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 […]
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 […]
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 […]
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. […]
Context: Disable self-ping / self-trackback in WordPress without Plugin Solution: This trick prevents WordPress from self-ping, which happens if you cross-link pages or posts of your own website.