Category: Tips & Tutorials
-
Installing Premium WordPress Plugins with Composer
If you’ve Google’d how to install or update premium plugins, like Advanced Custom Fields or Gravity Forms, with Composer, you’ve probably found solutions that want you to configure package data locally. Examples include this tutorial from Roots and this library on GitHub. The problem with these solutions is that they require defining the plugin version…
-
Add and Promote Products in a Shopify Blog Post
Here’s how to use Shopify’s Buy Button app to promote products within Shopify blog posts as part of your content marketing strategy
-
Handle Multiple reCAPTCHA’s on the Same Page
reCAPTCHA’s default configuration hijacks pretty much everything about form submission. So anything you want to do with the form, such as validation, will need to be fired in the configured callback function, rather than on the traditional submit event. This is pretty simple for most scenarios because you can use the form’s HTML ID to…
-
What does it cost to start using Shopify and Shopify POS for my brick-and-mortar businesss?
Brick and mortar businesses have been around for a long time, and this brand of retail isn’t going anywhere. While plenty of people are content to order peanut butter on subscription from Amazon, there will always be folks who want to shop in person. That’s doubly true for industries like clothing, furniture, and many others…
-
Configure Klaviyo Back-in-Stock Notifications for Shopify Dawn
Klaviyo is an email marketing platform with a strong Shopify integration. Of the many features it offers, including personalized recommended products in email campaigns and customer behavior tracking, it can be set up to allow customers to sign up to know when a product on your Shopify store is coming back in stock. Out of…
-
WooCommerce Foreign Key Errors and MySQL Engines
Here at Sterner Stuff, we don’t like throwing away existing websites and content. We call that stuff “equity”, and no one wants to throw away equity. When possible, we’ll repurpose as much of a WordPress site as possible when implementing a new design, features, etc. So while it may seem like a brand new site,…
-
Configuring WP fail2ban Behind Cloudflare
If your WordPress website is proxied behind Cloudflare, the IP address reported to your server isn’t the actual IP address of the original request. It’s a Cloudflare IP. Most of the time, this doesn’t matter, but if you’re using WP fail2ban, this causes issues. The Problem By default, fail2ban in combination with WP fail2ban works…
-
Migrate from WP User Avatar to JJJ’s WP User Avatars
WP User Avatar, now commandeered by ProfilePress, is significantly more bloated than it once was. There are a variety of alternatives to turn to if you want to replace it, but I’ve chosen (and recommend) WP User Avatars, maintained by WordPress core contributor John James Jacoby. The migration here is pretty simple. WP User Avatar…
-
Configure wkhtmltopdf for Laravel Snappy on Homestead, Sail, Forge
Laravel Snappy depends on wkhtmltopdf, and the Composer wrappers are outdated. Here’s how to get set up with the latest version.
-
Keep MySQL Databases During Laravel Homestead Upgrade
This question has been documented about a million places around the internet with a variety of convoluted answers. How can we upgrade Laravel Homestead without losing our MySQL databases? Instead of writing your own mysqldump commands, or copying and pasting one from an internet stranger, there’s actually functionality for this built right into Homestead. If…
-
Remove WordPress Actions with Object-Bound Callbacks
Often, it’s very simple to disable a filter or action in WordPress. Core’s adherence, merit notwithstanding, to working in the global namespace meant many plugins and themes followed suit. So unhooking a function was as simple as: But as PHP has matured, plugin and theme authors are more often using modern structures and practices, like…
-
The Sterner Stuff Work-From-Home Starter Kit
Working from home is brand new for a lot of folks, and it’s full of quirks and challenges. Even for someone who’s worked from home or a flex office for a while, COVID-19 has caused me to re-evaluate my setup. To maximize your productivity, here are a few products you shouldn’t live without. But First……