Most webmasters know that caching is important for page speed. But not a lot is said about cache warming which is just as important. Here’s how to warm up your site cache by crawling your sitemap using cURL. The code can be run from a Linux Cron job.
WordPress
WordPress is by far the most popular content management system in the world. So, naturally, I love it and have quite a bit to say about it. My WordPress posts may be slightly biased towards code hacks (as opposed to simpler configuration tweaks), but well, I'm a software guy... So, no apologies.
Always Display Star Ratings In WooCommerce (Even With No Reviews)
By default, WooCommerce will only show star ratings for products with ratings greater than zero. That means star ratings are not displayed until a product has at least one review. If you’d rather always have them displayed, use the code in this post.
Show Short Descriptions On WooCommerce Archives
WooCommerce archives (shop, categories, and tag pages) don’t display short descriptions by default. If you want this feature, customize your theme by adding this line of code.
Show Authors In WooCommerce Product Edit Area
WooCommerce products don’t have authors because the plugin developers think this is irrelevant. But a site may need this feature sometimes. The code snippet shared here helps bring back the feature to allow author assignment in the product edit area.
Auto-Check MailPoet “Subscribe In Comments” Box
MailPoet comes with a “subscribe in comments” option that allows visitors who comment on a post to subscribe to your list via a checkbox. But this box is unchecked by default. With this jQuery snippet, you can have the box auto-checked on page load.
Remove NoFollow From JetPack Related Posts Links
By default JetPack adds a nofollow attribute to all links in the related posts section. You can use this PHP code snippet to remove/disable this nofollow attribute.