California Prop 65 Conditional Text in WooCommerce

February 25, 2021

If you’re shipping products subject to Proposition 65 rules to addresses in California you’ll need to display text accordingly upon checkout. Surprisingly as of February 2021 we could find no working code or plugin that correctly displayed a message for an individual state.

We created the below code to display a WooCommerce warning message when shipping to CA addresses. The code will check for the “Ship to a different address” checkbox and act accordingly. It also handles saved addresses on logged in accounts. Read More

Disable Default Punch Fonts from Essential Grid Plugin

April 19, 2017

If you’ve used the Essential Grid plugin lately, you’ve likely noticed that the “Punch Fonts” module is a bit buggy and automatically re-activates three default fonts every time that the EG plugin is reactivated (and/or updated depending on how you run updates). We grew tired of keeping an eye out for these unnecessary fonts being loaded and decided to hide the Punch Fonts page entirely using Admin Menu Editor and force the three default fonts (Open Sans, Raleway, Droid Serif) to stay off the site with the following snippet. We recommend adding this code to a custom site functionality plugin, but it can also be added to a child theme’s functions.php file.Read More

Passing the Google Mobile Friendly test with WPTouch and WPEngine

April 21, 2015

Preparing for Google’s Mobile Friendly update on April 21st, we noticed that some of our clients’ sites using the WPTouch plugin were unexpectedly failing Google’s mobile-friendly test.  Since all of the sites were hosted with WPEngine, we contacted both WPTouch and WPEngine support. After a bit of back and forth, WPEngine solved the problem by adding the following to the varnish cache for the affected sites.Read More