How to Add Night Mode to Your WordPress Site with JavaScript & CSS

Lately, I've been thinking a lot readability and information retention. I firmly believe that people have an easier time comprehending dark text on a light background. However, there are certainly times when light text on a dark background is a valid design choice. For example, staring at a white background when reading late at night is terrible for your eyes. To address this issue, I added a "night mode" to my website that automatically turns on after 5 PM and stays active until 5 AM. I decided to forgo the typical night/light mode button because there's nowhere obvious to put such a button on my website. Here's how I added the automatic night mode feature.

Continue Reading →

The Difference Between WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT

By default, WordPress enforces a memory limit of 40 MB. This means a single PHP script is allowed to use up to 40 MB of RAM. In certain cases, you may need to increase WordPress' memory limit to run heavier plugins like WooCommerce or bbPress. To increase WordPress' memory limit, you can define WP_MEMORY_LIMIT in your wp-config.php file using the line below.

Continue Reading →

Kinsta Managed WordPress Hosting Review

The managed WordPress hosting industry can be accurately described with one word – overcrowded. As with other overcrowded industries, leaders tend to emerge over time, and that's exactly what Kinsta has done since it was founded in 2013. Over the past six years, Kinsta has grown from a small boutique hosting company into a globally recognized industry leader, all while maintaining unparalleled customer satisfaction and a quality user experience. Today, Kinsta offers a premium containerized WordPress hosting platform, "for everyone, small or large," built on top of Google Cloud Platform utilizing the latest technologies like NGINX, LXD, MariaDB, and PHP 7 to guarantee super fast load times. In this review, we'll take an in-depth look at Kinsta's WordPress hosting offering so you can decide if it's the right solution for you.

Continue Reading →

Sakura Season

I've literally visited Japan dozens of times over the last few years, but never in April. Now that I live in Tokyo, I was finally able to experience the cherry blossom frenzy at Shinjuku Gyoen (新宿御苑) firsthand.

I've literally visited Japan dozens of times over the last few years, but never in April. Now that I live in Tokyo, I was finally able to experience the cherry blossom frenzy at Shinjuku Gyoen (新宿御苑) firsthand.

pipdig is Hijacking WordPress Sites →

Jem Turner:

pipdig, one of the biggest WordPress theme providers to bloggers, is distributing code dressed up as the “pipdig Power Pack” plugin which amongst other things:

A great post by Jem. I highly recommend giving it a read if you're a pipdig customer or just someone who's interested about how easy it is for a theme provider to inject b***shit into your WordPress site. In short, here's what pipdig does with your site.

  • Uses your site to issue DDoS attacks on competitors.
  • Change links in your WordPress database to point to pipdig.com.
  • Violates GDPR laws.
  • Disables other plugins without asking you first.

The story doesn't end there though. Regarding that last point, Nicky Bloor discovered that pipdig disables Bluehost's and SiteGround's caching plugins, and then prompts users with a message that reads, "Is your host slowing you down?". Disgusting behavior from pipdig. I hope they lose customers over this.

« Permalink »

First Time on the Hokuriku Shinkansen

We took the Hokuriku Shinkansen to Karuizawa for a few days of R&R last week. Since we usually take the Tokaido Shinkansen, we decided to splurge for Gran Class this time around. The seats were very comfortable, and the cabin resembled that of an airplane – definitely a step up from our usual Green Car experience. It's a shame that the journey to Karuizawa only lasted an hour.

How to Set Up Cloudflare Full Page Cache for Your WordPress Site

Cloudflare is a popular service that offers DNS, CDN, security services, and more. It is often used by WordPress site owners to speed up and secure their websites. By default, Cloudflare automatically caches static assets like CSS, JS, and images. With a little extra work, Cloudflare can also be configured to "cache everything," which means a static HTML copy of your website will be cached and served from Cloudflare's extensive network of data centers around the world. In this post, you'll learn more about Cloudflare's "full page cache" feature, and if it's a good option for your WordPress site.

Continue Reading →